角度-错误:产生cmd ENOENT [英] Angular - Error: spawn cmd ENOENT

查看:91
本文介绍了角度-错误:产生cmd ENOENT的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在生成角度时遇到问题-哟.

我都做完了.运行凉亭安装和安装npm install为您安装所需的依赖项.如果失败,请尝试自己运行该命令.

I'm all done. Running bower install & npm install for you to install the required dependencies. If this fails, try running the command yourself.

调用angular:route调用angular:controller:C:\ Users \ david \ AppData \ Roaming \ npm \ node_modules \ generator-angular \ route \ index.js创建应用程序\脚本\控制器\ about.jsevents.js:85投掷者//未处理的错误"事件^错误:生成cmd ENOENT在exports._errnoException(util.js:746:11)在Process.ChildProcess._handle.onexit(child_process.js:1053:32)在child_process.js:1144:20在process._tickCallback(node.js:355:11)

invoke angular:route invoke angular:controller:C:\Users\david\AppData\Roaming\npm\node_modules\generator-angular\route\index.js create app\scripts\controllers\about.js events.js:85 throw er; // Unhandled 'error' event ^ Error: spawn cmd ENOENT at exports._errnoException (util.js:746:11) at Process.ChildProcess._handle.onexit (child_process.js:1053:32) at child_process.js:1144:20 at process._tickCallback (node.js:355:11)

有人告诉我如何解决此问题?谢谢.

Anyone show me how to solve this issue? Thanks.

推荐答案

我不确定为什么会出现此错误,但是我设法通过运行 ng serve 而不是 ng服务-打开.请不要,您将需要手动复制该网址,然后将其放置在浏览器中,该网址应为 http://localhost:4200/

Im not sure why this error comes about, however i managed to run my Angular application by running with : ng serve instead of ng serve --open . Please not you will need to copy the url manually and place it in the browser afterwards which should be http://localhost:4200/

这篇关于角度-错误:产生cmd ENOENT的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆