-
Notifications
You must be signed in to change notification settings - Fork 7.3k
Error: spawn ENOENT
when executing a program installed globally via npm (Windows)
#5841
Comments
This is caused by #2318. |
Ahh, thanks for pointing out the true root cause. Makes more sense now why installing |
Maybe we should have a doc update around it, but the brunt of this issue is tracked by another, closing as a duplicate |
Fixes OS X maxfiles stream limit: nodejs/node-v0.x-archive#5841
Fixes OS X maxfiles stream limit: nodejs/node-v0.x-archive#5841
when i run cordova-splash command this error to come. |
Failed to launch external program npm run compile. |
Adding C:\Windows\System32\ to my system PATH in Environment variable and restarting my cmd fixed the problem for me. |
@brzpegasus @domenic @tjfontaine @ijlalkhanzada @D0f @ayo123 , this issue was resolved in #2318 : e.g. npm, just replace
by
|
When I install an npm module globally, I'm able to execute it in a child process with the
exec
method, but not withspawn
.So, this will print the version of Express (although sometimes it won't print anything because of this other issue)...
But if I use
spawn
instead:then I get this error:
I believe this is only happening on Windows. I've seen this issue reported in other repos, like mocha-phantomjs, but it seems like a Node issue to me. Essentially,
spawn
is unable to find the command, butexec
can. Shouldn't they work consistently?I'm on Windows 7, using node v0.10.13.
The text was updated successfully, but these errors were encountered: