2017-04-15 108 views
-2
NPM启动命令

我的代码回购是here,我在Windows 8中,节点7.9 & NPM 4.2 我已经做了很多事情,但没有得到solutino运行此这个,谷歌搜索解决方案,但没有领先。发生错误:LITE-服务器而Angular2

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

没有互联网连接。你使用任何代理? – Aravind

+0

不,我没有使用任何代理。 – TheTom

+1

你不能继续这个问题到你问的前一个问题吗?它仍然没有答案,你通过安装软件包取得了一些进展.. – Gntem

回答

1

改变开始,以 “TSC & &同时 ”NPM运行TSC:W“ ”故宫运行精简版“”,

安装运行,并通过运行命令 “故宫安装-g运行” 全球建兴, “npm install -g lite”

它工作。问题解决了!

相关问题