【发布时间】:2017-12-11 01:08:48
【问题描述】:
今天,在完成一些基本的 AngularJS 介绍时,我遇到了一个问题。
我打开了 PowerShell 来开始这个项目。 NPM 工作。
我能够使用以下方法安装 Angular:
npm install -g @angular/cli
每当我尝试运行 ng 时,我都会得到:
the term 'ng' is not recognized as the name of a cmdlet
【问题讨论】:
-
在“以管理员身份运行”模式下进行
-
我在这里尝试了一切都无济于事。我还必须运行
npm install -g @angular/cli,然后它才能工作。 -
您使用的真的是 AngularJS 吗? 2017 年你可能使用过 Angular(没有 JS)。
标签: node.js angular powershell npm angular-cli