Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

installing older angular version 5?

I was working on personal project which was in Angular 5. Due to some reason I have changed my device, how could I install Angular 5 in my new device since there is new version is available, Is there any way to install Angular 5 instead Angular 6?

like image 302
neekheel Avatar asked Jan 28 '23 19:01

neekheel


2 Answers

Like this

npm uninstall -g @angular/cli  
npm install -g @angular/[email protected]  

but even install the lates angular cli will not effect your old project , just you will get a warning when you try to serve the project.

Happy coding

like image 80
Muhammed Albarmavi Avatar answered Jan 30 '23 09:01

Muhammed Albarmavi


npm install @angular/<module>@5

will install the most recent version that satisfies the requirements, just replace the with the angular submodule.

Alternatively, go to your package.json file and specify e.g. "5.x.x" as the version for your angular dependencies. Run npm install afterwards

like image 45
Jan Avatar answered Jan 30 '23 09:01

Jan