ng在Windows中使用CMD在角度项目文件夹中不起作用

时间:2018-01-18 15:42:05

标签: angular

我正在尝试在我的角项目中的ng serve环境中运行Windows 10,但它会返回下面列出的错误:

'ng' is not recognized as an internal or external command,
operable program or batch file.

我在文件夹

下面
  

C:\ Users ... \ AppData \ Roaming \ npm \ angular-hello-world> ng serve

我在这里做错了什么。

我是新手,所以简单明了的步骤会有所帮助。谢谢。

1 个答案:

答案 0 :(得分:1)

看起来它没有全局安装。

尝试使用npm start继续进行全局安装,或者只是全局安装:npm install -g @angular/cli