无法找到ng-common软件包 [英] Unable to locate package ng-common

查看:104
本文介绍了无法找到ng-common软件包的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在Ubuntu 16.04中找不到软件包ng-common

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

this is the error that i get when i am running ng-serveon my Visual Studio Code application.

场景-

我正在跑步ng serve 然后我得到了错误

I was running ng serve Then i got the error

当前未安装程序"ng".您可以通过
进行安装 键入:sudo apt install ng-common您将必须启用 称为宇宙"的组件

The program 'ng' is currently not installed. You can install it by
typing: sudo apt install ng-common You will have to enable the component called 'universe'

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

然后我得到了错误

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

Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package ng-common

该怎么办?

推荐答案

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

Try installing angular cli globaly with sudo user

sudo npm install -g angular-cli

这篇关于无法找到ng-common软件包的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆