linux - ngserve 无法在 Ubuntu 上启动 Anguiar

标签 linux angular ubuntu angular-cli

我使用的是 Linux Ubuntu,当输入 ng serve 时打开:

我可以通过运行 npm start 来启动应用程序,因为脚本运行 ng serve 。但是我需要运行 ng servesudo ,以便它识别文件更改。

推杆sudo ng serve进入启动脚本也不起作用。

最佳答案

全局安装 ng

npm install @angular/cli -g

关于linux - ngserve 无法在 Ubuntu 上启动 Anguiar,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/53959519/

相关文章:

angular - 在其中使用 observabe 时管道不返回值

c# - Angular 2,C# MVC ApiController : Error on Get Request from C# Rest Api

javascript - 如何在客户端将javascript动画转换为视频输出

linux - debian wheezy - 如何挂载未使用的磁盘?

php - 如何在linux服务器上设置cron?

c - 为什么 c 中的时间函数返回毫秒而不是秒?

javascript - Angular,使用express和mySql向客户端显示数据

Apache2 错误日志

xml - Shell 脚本问题 : how to parse a special "word" out of a line of xml file

linux - 如何使用 bash 根据模式列出 Linux 中的文件