node.js - nodemon failed to start due to some error -
this error comes when run programme using global nodemon, fine when use node
[nodemon] 1.11.0 [nodemon] restart @ time, enter `rs` [nodemon] watching: *.* [nodemon] starting `node server.js` events.js:160 throw er; // unhandled 'error' event ^ error: spawn cmd enoent @ exports._errnoexception (util.js:1018:11) @ process.childprocess._handle.onexit (internal/child_process.js:193:32) @ onerrornt (internal/child_process.js:367:16) @ _combinedtickcallback (internal/process/next_tick.js:80:11) @ process._tickcallback (internal/process/next_tick.js:104:9) without nodemon works correctly globally run gives error.
you're supposed run nodemon
in place ofnode
. looks you're running nodemon node server.js
instead run
nodemon server.js
Comments
Post a Comment