我的代码仓库是here,我在Windows 8,节点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
答案 0 :(得分:1)
将开始更改为“tsc&&并发”npm run tsc:w“”npm run lite“”,
通过运行命令“npm install -g run”,“npm install -g lite”
全局安装run和lite它有效。问题已解决!