Fatal error: spawn cmd ENOENT - grunt serve

I try to start the angular application using the command grunt serve but I get Fatal error: spawn cmd ENOENT.

I used the following commands to create my angular app

npm install -g yo grunt-cli bower
npm install -g generator-angular
yo angular
npm install
bower install

then I used the command grunt serveto launch my application

but does not work.

System Information: OS: Windows 7 64 bit Version for npm: 2.11.3 enter image description here

Please help me, I looked through all the documentation, but I won’t tell you.

+4
source share
2 answers

Try the following possible solutions:

  • Make sure the npm folder exists in the following location: C: \ Users \ My-UserName \ AppData \ Roaming \ npm
  • Try clearing the npm cache
  • Add C:\Windows\System32\to the PATH environment variable
+11

grunt cmd.exe git bash. .

+1

All Articles