What is the problem of "node" working, but "nodemon" does not steal 64-bit in Windows 7 in node.js?

I am new to node.js. node works fine, but when I installed the nodemon package, it gives an error: exception in nodemon killing node , even if it is installed globally.

  22 Jun 13:07:29 - [nodemon] v1.3.7 22 Jun 13:07:29 - [nodemon] to restart at any time, enter `rs` 22 Jun 13:07:29 - [nodemon] watching: *.* 22 Jun 13:07:29 - [nodemon] starting `node server.js` exception in nodemon killing node Error: spawn cmd ENOENT at exports._errnoException (util.js:746:11) at Process.ChildProcess._handle.onexit (child_process.js:1053:32) at child_process.js:1144:20 at process._tickCallback (node.js:355:11) ---------------------------------------------------------- If appropriate, please file an error with the output from: $ node C:\Users\username\AppData\Roaming\npm\node_modules\nodemon\bin\nodemon. js server.js --dump At http://github.com/remy/nodemon/issues/new 
+7
source share
2 answers

Possible solutions.

1. Access rights

The problem may be with your file permissions. Follow in git bash or from a window the way to grant full permission to the project folder.

 $ chmod -R 777 [folder] 

2. Environment variables

Missing "C: \ Windows \ System32 \" in PATH.

Github issue

3. Reinstallation

Remove nodemon completely with npm and try reinstalling.

 npm uninstall -g nodemon 

4. Update nodejs

If you have an older version of nodejs, try updating it. I prefer to completely remove nodejs and reinstall it again.

Step by step to remove nodejs in windows

Note. Perhaps your question is not rich enough to give the right answer. please add additional information about the question if these 2 solutions do not work.

+7
source share

Help to find your nodemon.cmd as follows:

 var nodemonCmd = (process.platform == 'win32') ? 'node_modules\\.bin\\nodemon.cmd' : 'nodemon' myApp = spawn(nodemonCmd, ['build/server.bundle']); 

Hope it works :)

-one
source share

All Articles