npm install不安装我的依赖项

时间:2018-06-07 20:06:57

标签: node.js npm vps

我使用node和angular cli构建了一个Web应用程序。该应用程序运行正常,问题是当我尝试在Web服务器上部署它时。 我从Github下载了整个项目,但是当我运行“npm install”时,它似乎安装了一些东西但是,当我尝试“ng build”时告诉我:“ng:command not found”

Example of when I try to run ng build

1 个答案:

答案 0 :(得分:0)

您没有安装angular-cli:

使用以下方式安装:

npm install -g @angular/cli

再试一次。

相关问题