2016-05-27 2 views
0

Я новичок в угловом запуске angular2 с официального сайта.Ошибка lite-server во время работы angular2-quickstart в окнах

https://angular.io/guide/quickstart (пример быстрого запуска).

версии node.js и npm рекомендуются.

Я столкнулся с этой ошибкой, может кто-нибудь помочь мне в этом.

**[1] [BS] Serving files from: ./ 
[1] [BS] Watching files... 
[1] events.js:154 
[1]  throw er; // Unhandled 'error' event 
[1]  ^
[1] 
[1] Error: spawn cmd ENOENT 
[1]  at exports._errnoException (util.js:893:11) 
[1]  at Process.ChildProcess._handle.onexit (internal/child_process.js:182:32 
) 
[1]  at onErrorNT (internal/child_process.js:348:16) 
[1]  at _combinedTickCallback (internal/process/next_tick.js:74:11) 
[1]  at process._tickCallback (internal/process/next_tick.js:98:9) 
[1] 
[1] npm 
[1] ERR! Windows_NT 6.1.7601 
[1] npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\node 
js\\node_modules\\npm\\bin\\npm-cli.js" "run" "lite" 
[1] npm 
[1] ERR! node v5.11.1 
[1] npm ERR! npm v3.8.6 
[1] npm ERR! code ELIFECYCLE 
[1] npm ERR! [email protected] lite: `lite-server` 
[1] npm ERR! Exit status 1 
[1] npm ERR! 
[1] npm ERR! Failed at the [email protected] lite script 'lite-server'. 
[1] npm ERR! Make sure you have the latest version of node.js and npm installed. 
[1] npm ERR! If you do, this is most likely a problem with the angular2-quicksta 
rt package, 
[1] npm ERR! not with npm itself. 
[1] npm ERR! Tell the author that this fails on your system: 
[1] npm ERR!  lite-server 
[1] npm ERR! You can get information on how to open an issue for this project wi 
th: 
[1] npm ERR!  npm bugs angular2-quickstart 
[1] npm ERR! Or if that isn't available, you can get their info via: 
[1] npm ERR!  npm owner ls angular2-quickstart 
[1] npm ERR! There is likely additional logging output above. 
[1] 
[1] npm ERR! Please include the following file with any support request: 
[1] npm ERR!  C:\BackUp\projects\projects\Angular2.0\angular2-quickstart\npm- 
debug.log 
[1] npm run lite exited with code 1** 


[enter image description here][1] 

enter image description here

ответ

0

Привет проверить переменные окружения и добавьте путь C: \ Windows \ System32.

Надеюсь, что это вам поможет :)

Смежные вопросы