Nagesh Sanika
Nagesh Sanika

Reputation: 1090

Fatal Error: spawn cmd ENOENT -- grunt serve

I am trying to start my angular app using grunt serve command but I am getting Fatal error: spawn cmd ENOENT.

I used following commands to generate my Angular App

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

then i used grunt serve command to start my app

but its not working.

System Info: OS: Windows 7 64 bit npm version : 2.11.3enter image description here

please help me, I gone through all the grunt documentation but no clue.

Upvotes: 6

Views: 10308

Answers (2)

Pingting
Pingting

Reputation: 11

Run grunt serve with cmd.exe instead of git bash. I have the same problem and have dealt with it in this way.

Upvotes: 1

Luuk Moret
Luuk Moret

Reputation: 506

Try the following possible solutions:

  • Verify the npm folder exists at the following location C:\Users\My-UserName\AppData\Roaming\npm
  • Try to run npm cache clean
  • Add C:\Windows\System32\ to the PATH Environment variable

Upvotes: 13

Related Questions