簡體   English   中英

在Windows中運行angular2-quickstart時的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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM