How to update or upgrade angular cli version?

Member

by leonor , in category: Technology , 4 years ago

How to update or upgrade angular cli version?

Facebook Twitter LinkedIn Telegram Whatsapp

1 answer

Member

by maiya , 4 years ago

In order to upgrade angular-cli package that was installed globally in your system, you need to run following commands

1
2
3
npm uninstall -g angular-cli
npm cache clean or npm cache verify (if npm > 5)
npm install -g @angular/cli@latest

Instead of upgrading global version of angular-cli you can also upgrade the local version for specific project y running following commands:

1
2
3
4
rm -rf node_modules
npm uninstall --save-dev angular-cli
npm install --save-dev @angular/cli@latest
npm install

Related Threads:

How to update Angular 4,5, 6 to Angular 7?
What is .angular-cli.json. Where can I find it?
How to Customize Macros on a Gaming Keyboard in 2025?
What Is the Latest Version Of Ruby on Rails in 2025?
How to Disable Browser Caching for My Website in 2025?
How to run Angular 5 application locally during development?