Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
1.0k views
in Technique[技术] by (71.8m points)

angularjs - 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.

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

Try the following possible solutions:

  • Verify the npm folder exists at the following location C:UsersMy-UserNameAppDataRoaming pm
  • Try to run npm cache clean
  • Add C:WindowsSystem32 to the PATH Environment variable

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...