简体   繁体   中英

How to update Angular cli version for existing application?

我正在使用npm start运行我的angular 2应用程序,这里ng服务,ng build commanda无法正常工作,我尝试构建此应用程序,它显示错误消息ng build error message

If u run this command

npm install -g @angular/cli

it will automatically download the latest version of angular @ before angular is mainly used to get the latest version

Go to your application's package.json file where you can find devDependencies and you will see your application cli version. you can change the version there and you can use npm install again.

在package.json文件所在的项目根目录中运行ng build

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM