-
Notifications
You must be signed in to change notification settings - Fork 2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm start, Error: Cannot find module '%NODE_ARGS%' #16452
Comments
Did anyone had a chance to review this issue? your help is deeply appreciated. |
(Out of curiosity) why do you think it's because of "docs" files? I searched for the error you mentioned on Google:
And I found an open issue in the |
@designsimply, the first time when I tried this application, I was trying with all the latest versions.. I mean node v8. That time also I encountered the same error at same line, but there were no openssl error. I thought it could be because of not using the recommended versions, then I tried reinstalling the calypso with 6.11.1, and this time also got the same along with openssl errors. Thanks, |
@designsimply, I referred the issue you mentioned, after setting the ssl config to null, i'm not getting any openssl error, but still it throws the same error at same line. Pasting the complete output here.
|
@kumarbalap I have exactly the same problem in windows 10 64 bits.
`[..................] / : sill lifecycle wp-calypso@0.17.0 Error: Cannot find module 'C:\Users\np\SitiosWeb\wp-calypso%NODE_ARGS%' Error: spawn node ENOENT Error: spawn cross-env ENOENT npm ERR! Windows_NT 10.0.15063 npm ERR! Please include the following file with any support request: |
There's a problem on the way Windows handles non-existent env variables. The workaround is to run this command before I'll fix that when I have some time to look at it, it looks like something |
In case someone else wants to take a stab at this issue, here's more context. This line allows running The And in Windows: So everything works fine when |
@DanReyLop thank you, setting empty NODE_ARGS solved the problem, proceeding with the rest of the things. |
@kumarbalap I'll leave this open for now. I gave you a hacky workaround but the problem must be fixed :) |
…mmands in Windows with undefined env variables Fixes #16452 Closes #19084 The latest version of `cross-env` (`5.1.1`) includes a fix to #16452. The fix is: kentcdodds/cross-env#149 Now the behaviour of commands like `cross-env node $UNDEFINED_VAR index.js` is expanding the variable to the empty string, both in Windows and in UNIX. To get the new version of `cross-env` working, I had to change all `cross-env` commands to `cross-env-shell`, as this was a breaking change on `cross-env@5`. To test: run `npm start` on a Windows `cmd.exe` shell, check that it works. cc/ @Viper007Bond @withinboredom
…ommands in Windows with undefined env variables Fixes #16452 Closes #19084 The latest version of `cross-env` (`5.1.1`) includes a fix to #16452. The fix is: kentcdodds/cross-env#149 Now the behaviour of commands like `cross-env node $UNDEFINED_VAR index.js` is expanding the variable to the empty string, both in Windows and in UNIX. To get the new version of `cross-env` working, I had to change all `cross-env` commands to `cross-env-shell`, as this was a breaking change on `cross-env@5`. To test: run `npm start` on a Windows `cmd.exe` shell, check that it works. cc/ @Viper007Bond @withinboredom
…ommands in Windows with undefined env variables Fixes #16452 Closes #19084 The latest version of `cross-env` (`5.1.1`) includes a fix to #16452. The fix is: kentcdodds/cross-env#149 Now the behaviour of commands like `cross-env node $UNDEFINED_VAR index.js` is expanding the variable to the empty string, both in Windows and in UNIX. To get the new version of `cross-env` working, I had to change all `cross-env` commands to `cross-env-shell`, as this was a breaking change on `cross-env@5`. To test: run `npm start` on a Windows `cmd.exe` shell, check that it works. cc/ @Viper007Bond @withinboredom
…ommands in Windows with undefined env variables Fixes #16452 Closes #19084 The latest version of `cross-env` (`5.1.1`) includes a fix to #16452. The fix is: kentcdodds/cross-env#149 Now the behaviour of commands like `cross-env node $UNDEFINED_VAR index.js` is expanding the variable to the empty string, both in Windows and in UNIX. To get the new version of `cross-env` working, I had to change all `cross-env` commands to `cross-env-shell`, as this was a breaking change on `cross-env@5`. To test: run `npm start` on a Windows `cmd.exe` shell, check that it works. cc/ @Viper007Bond @withinboredom
'BROWSERSLIST_ENV' is not recognized as an internal or external command. |
Platform: Windows
Node: 6.11.1
npm: 3.10.10
bundle.js.map 5.39 MB 0 [emitted] main
[15] ./server/config/index.js 858 bytes {0} [built]
[639] ./package.json 11.7 kB {0} [built]
[640] ./index.js 1.54 kB {0} [built]
[641] ./server/boot/index.js 1.98 kB {0} [built]
[642] ./server/build/index.js 1.48 kB {0} [built]
[644] ./server/config/parser.js 1.79 kB {0} [built]
[645] ./client/lib/create-config/index.js 2.65 kB {0} [built]
[647] ./server/pages/index.js 13.9 kB {0} [built]
[1209] ./server/isomorphic-routing/index.js 3.67 kB {0} [built]
[1764] ./server/pages/analytics.js 1.63 kB {0} [built]
[1767] ./server/user-bootstrap/index.js 1.4 kB {0} [built]
[1770] ./server/bundler/index.js 2.97 kB {0} [built]
[1776] ./server/devdocs/index.js 8.3 kB {0} [built]
[1790] ./server/api/index.js 457 bytes {0} [built]
[1791] ./server/api/oauth.js 2.7 kB {0} [built]
+ 1780 hidden modules
Time: 41s 87.520ms
openssl config failed: error:02001003:system library:fopen:No such process
openssl config failed: error:02001003:system library:fopen:No such process
openssl config failed: error:02001003:system library:fopen:No such process
openssl config failed: error:02001003:system library:fopen:No such process
module.js:471
throw err;
^
Error: Cannot find module 'C:\Apps\blogs-calypso%NODE_ARGS%'
at Function.Module._resolveFilename (module.js:469:15)
at Function.Module._load (module.js:417:25)
at Module.runMain (module.js:604:10)
at run (bootstrap_node.js:389:7)
at startup (bootstrap_node.js:149:9)
at bootstrap_node.js:504:3
events.js:160
throw er; // Unhandled 'error' event
^
Looks like it is because of "docs" files.
What could be the issue?
Thanks,
Bala
The text was updated successfully, but these errors were encountered: