Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Unable to downgrade Angular from version 6 to 5

Recently (May 2018) newer stable version of angular has been released. I have migrated succesfully from version 5 to 6.

But for some reason I wanted to rollback to version 5. I have tried following commands:

npm uninstall -g @angular/cli

it uninstalled the latest version of angular-6.

npm cache clean --force

and then installed

npm install -g @angular/[email protected]

But it gave this error enter image description here

node version: 8.10.0

npm version: 6.0.0

like image 479
Suresh Karia Avatar asked May 10 '18 08:05

Suresh Karia


1 Answers

Same as the other answer, but this time only commands instead of a difficult to follow screenshot

I wanted to downgrade from 7.0.2 to 6.2.5

ng --version

npm uninstall -g @angular/cli
npm cache clean --force

npm install -g @angular/[email protected]
ng --version
like image 156
Manohar Reddy Poreddy Avatar answered Sep 28 '22 19:09

Manohar Reddy Poreddy