Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to start Angular 11 while it is installed on Angular 13 system

I installed Angular 13 globally, but I want to start a project with version 11. Do I have to remove Angular from the system altogether and install Angular 11?

like image 552
davood beheshti Avatar asked Jun 04 '26 21:06

davood beheshti


1 Answers

Have you tried using this npx trick?

In short you can try running the scripts directly from the desired version by using

npx @angular/cli@7 new Angular7Project

to create an Angular project of that version.

Another option would be to install another cli specific to that project directory, instead of globally, so creating a directory then running npm install angular/cli@XXXXX. Running your ng commands (eg. ng new) in that folder will use the local cli version.

like image 163
Arthur Barbosa Avatar answered Jun 07 '26 09:06

Arthur Barbosa



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!