【问题标题】:Unable to locate package ng-common无法找到包 ng-common
【发布时间】:2018-11-24 02:50:25
【问题描述】:

无法在 Ubuntu 16.04 中找到包 ng-common

这是我在 Visual Studio Code 应用程序上运行 ng-serve 时遇到的错误。

场景-

我正在运行ng serve 然后我得到了错误

当前未安装程序“ng”。您可以通过
安装它 键入: sudo apt install ng-common 您必须启用 名为“宇宙”的组件

所以我运行了这个命令sudo apt install ng-common

然后我得到了错误

正在读取包列表...完成构建依赖树读取状态 信息...完成 E:无法找到包 ng-common

怎么办?

【问题讨论】:

    标签: node.js angular angular-cli


    【解决方案1】:

    尝试使用 sudo 用户全局安装 angular cli

    sudo npm install -g angular-cli
    

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2016-10-17
      • 1970-01-01
      • 2020-10-06
      • 1970-01-01
      • 2016-01-01
      • 2016-03-30
      • 2021-12-16
      相关资源
      最近更新 更多