执行命令时发生错误:lite-server while npm start command for Angular2
Error occured when executing command: lite-server while npm start command for Angular2
我的代码库是 here,我是 运行 这个 windows 8,node 7.9 & npm 4.2
我已经做了很多事情,但没有为此解决方案,用谷歌搜索解决方案但没有任何线索。
Error occured when executing command: lite-server
Error: spawn cmd.exe ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3
Error occured when executing command: lite-server
Error: spawn cmd.exe ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3
[1] lite-server exited with code -4058
将开始更改为 "tsc && concurrently "npm 运行 tsc:w" "npm run lite" ",
已通过 运行ning 命令 "npm install -g run"、"npm install -g lite"
全局安装 运行 和精简版
它奏效了。问题已解决!
我的代码库是 here,我是 运行 这个 windows 8,node 7.9 & npm 4.2 我已经做了很多事情,但没有为此解决方案,用谷歌搜索解决方案但没有任何线索。
Error occured when executing command: lite-server
Error: spawn cmd.exe ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3
Error occured when executing command: lite-server
Error: spawn cmd.exe ENOENT
at exports._errnoException (util.js:1050:11)
at Process.ChildProcess._handle.onexit (internal/child_process.js:193:32)
at onErrorNT (internal/child_process.js:367:16)
at _combinedTickCallback (internal/process/next_tick.js:80:11)
at process._tickCallback (internal/process/next_tick.js:104:9)
at Module.runMain (module.js:607:11)
at run (bootstrap_node.js:423:7)
at startup (bootstrap_node.js:147:9)
at bootstrap_node.js:538:3
[1] lite-server exited with code -4058
将开始更改为 "tsc && concurrently "npm 运行 tsc:w" "npm run lite" ",
已通过 运行ning 命令 "npm install -g run"、"npm install -g lite"
全局安装 运行 和精简版它奏效了。问题已解决!