我正在计算机上设置Angular并收到类似以下错误:
生成cmd ENOENT
完整的堆栈跟踪:
events.js:136
throw er; // Unhandled 'error' event
^
Error: spawn cmd ENOENT
at _errnoException (util.js:999:13)
at Process.ChildProcess._handle.onexit (internal/child_process.js:201:19)
at onErrorNT (internal/child_process.js:389:16)
at process._tickCallback (internal/process/next_tick.js:152:19)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! metronic-angular@6.0.0 start: `ng serve --open`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the metronic-angular@6.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\xxx\AppData\Roaming\npm-cache\_logs\2019-04-09T07_17_18_068Z-debug.log
我已经更改了系统路径并仍以管理员身份运行,但仍收到此错误,或者npm install
是否缺少任何内容
我尝试打开localhost:http://localhost:4200/
,但这表明
无法访问此站点,本地主机拒绝连接。