将Angular CLI升级到最新版本?

时间:2018-11-01 15:39:54

标签: node.js angular-cli

我开始了一个新的有角度的项目,当我使用时,这对我来说很好用

npm start

但是我要使用:

ng serve 

然后/我尝试了这个:

npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest

但是,即使我运行以下命令,也会出现此错误:

ng --version


An invalid configuration file was found ['/home/edson/.angular.json']. Please delete the file before running the command.

有人知道为什么会发生吗?

0 个答案:

没有答案