[英]npm ERR! Failed at the angular2-quickstart@1.0.0 start script 'tsc && concurrently “tsc -w” “lite-server”
[英]lite-server error while running angular2-quickstart in windows
我是新手,从官方网站开始的angular2。
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! angular2-quickstart@1.0.0 lite: `lite-server`
[1] npm ERR! Exit status 1
[1] npm ERR!
[1] npm ERR! Failed at the angular2-quickstart@1.0.0 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]
嗨,检查您的环境变量,然后添加路径C:\\ Windows \\ System32。
希望它能对您有所帮助:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.