Skip to content
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

Warning for "spawnSync npm ENOENT" #119

Open
schifred opened this issue Sep 29, 2017 · 0 comments
Open

Warning for "spawnSync npm ENOENT" #119

schifred opened this issue Sep 29, 2017 · 0 comments

Comments

@schifred
Copy link

Hi!
Dependencies hasn't installed when I set process.env.NODE_ENV to "development" on Mac OS.

Installing underscore...
Installing underscore...
Installing underscore...
Installing underscore...
Hash: b6a12f64cf3c10156334
Version: webpack 3.5.5
Time: 5328ms
                               Asset       Size  Chunks                    Chunk Names
780cd4e05755d6fef36478d58314ef65.png  302 bytes          [emitted]         
3ec2904732c72b301eff663c0c54da80.png  414 bytes          [emitted]         
744113230af69bc819fac37c2346c46e.png  426 bytes          [emitted]  

After I written "console.log(output.error);" in src/Installer.js, the terminal displays as follows.

Installing underscore...
{ Error: spawnSync npm ENOENT
    at exports._errnoException (util.js:1020:11)
    at spawnSync (child_process.js:450:20)
    at Function.spawnSync [as sync] (/Users/alfred/Desktop/learning/plutarch/node_modules/npm-install-webpack-plugin/node_modules/cross-spawn/index.js:46:14)
    at Object.install (/Users/alfred/Desktop/learning/plutarch/node_modules/npm-install-webpack-plugin/src/installer.js:159:22)
    at NpmInstallPlugin.install (/Users/alfred/Desktop/learning/plutarch/node_modules/npm-install-webpack-plugin/src/plugin.js:73:15)
    at NpmInstallPlugin.<anonymous> (/Users/alfred/Desktop/learning/plutarch/node_modules/npm-install-webpack-plugin/src/plugin.js:193:12)
    at onError (/Users/alfred/Desktop/learning/plutarch/node_modules/enhanced-resolve/lib/Resolver.js:65:10)
    at loggingCallbackWrapper (/Users/alfred/Desktop/learning/plutarch/node_modules/enhanced-resolve/lib/createInnerCallback.js:31:19)
    at runAfter (/Users/alfred/Desktop/learning/plutarch/node_modules/enhanced-resolve/lib/Resolver.js:158:4)
    at innerCallback (/Users/alfred/Desktop/learning/plutarch/node_modules/enhanced-resolve/lib/Resolver.js:146:3)      

Will it be better to print this error?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant