【问题标题】:npm install doesn't install my dependenciesnpm install 不安装我的依赖项
【发布时间】:2018-06-07 20:06:56
【问题描述】:

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

Example of when I try to run ng build

【问题讨论】:

  • 你需要安装angular cli。

标签: node.js npm vps


【解决方案1】:

你没有安装 angular-cli:

安装它使用:

npm install -g @angular/cli

然后再试一次。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2023-03-26
    • 1970-01-01
    • 1970-01-01
    • 2015-07-25
    • 2016-01-13
    • 1970-01-01
    • 1970-01-01
    • 2013-11-20
    相关资源
    最近更新 更多