Ng Serv或ng new不起作用 [英] Ng serve or ng new does not work

查看:41
本文介绍了Ng Serv或ng new不起作用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在终端上收到此消息,说我无法运行该应用程序.输入 ng serve 后,即可运行Angular应用程序.请查看所附图片:

I am getting this message on the terminal, saying that I'm not able to run the app. After enter ng serve to run the Angular application. Please see attached image:

推荐答案

此处为简单解决方案.

尝试:

sudo apt purge ng-common ng-latin

然后,使用 sudo 安装angular:

And then, install angular with sudo:

sudo npm install -g @angular/cli

这篇关于Ng Serv或ng new不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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