Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 308
Nagesh Sanika Avatar asked Jul 14 '15 05:07

Nagesh Sanika


2 Answers

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
like image 166
Luuk Moret Avatar answered Nov 07 '22 10:11

Luuk Moret


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

like image 23
Pingting Avatar answered Nov 07 '22 09:11

Pingting