I am new to node.js. node
is working fine but when I installed the nodemon
package, it gives an error: exception in nodemon killing node
Help spawn to locate your nodemon.cmd like this:
var nodemonCmd = (process.platform == 'win32') ? 'node_modules\\.bin\\nodemon.cmd' : 'nodemon'
myApp = spawn(nodemonCmd, ['build/server.bundle']);
Hope it works :)
Possible solutions.
1. Permissions
Problem maybe in your file permissions. Execute in git bash or from windows way of giving full permission to the project folder.
$ chmod -R 777 [folder]
2. Environment Variables
Missing "C:\Windows\System32\" in the PATH.
Github issue
3. Reinstall
Completely remove nodemon using npm and try reinstalling.
npm uninstall -g nodemon
4. Update nodejs
If you have and old version of nodejs, try updating it. I prefer completely removing nodejs and reinstalling it again.
Step by steps to remove nodejs in windows
Note: Your question maybe not rich enough to give an correct answer. please include more information about the question if this 2 solutions didn't work.