angular - ng : command not found while creating new project using angular-cli

标签 angular npm angular-cli

使用 (npm install -g angular-cli) 在全局安装了 angular-cli 但是当我尝试使用 ng new my-project 创建项目时它抛出错误:

ng: command not found

最佳答案

问题很简单,npm不知道ng

只需运行 npm link @angular/cli 它应该可以无缝运行。

关于angular - ng : command not found while creating new project using angular-cli,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/37227794/

相关文章:

twitter-bootstrap - 如何在 Angular 2 中使用 Scrollspy 和 Affix

angular - 'ng build' 在环境中production 设置为true 时是否使用AOT 编译?

angular - 在 Angular 中将数据从一个组件发送到另一个组件(已关闭)

Angular5部署到Azure webapp : Content Security Policy

angular - 将 NgbDate 转换为用于格式化目的的时刻 : issue with first month assigned as 0 vs 1

angular - 选择框默认值未显示 [(ngModel)] Angular 2

javascript - 如何使用 javascript 轻松修改 yaml 文件?

node.js - 检查 npm 依赖项是否存在安全问题的最佳方法是什么?

react-native - 在 React Native 中删除模块的引用

angular - 在 VS Code 中使用 Angular/CLI,我可以在构建的同时运行测试吗?