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

Time:04-20

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?

CodePudding user response:

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.

CodePudding user response:

dont have any problem if you have a angular 13 in your system globally, if you start a project whit angular 11, only you have a warning tell you, that your globally version is mayor than your local.

this happen to if you downloaded a repository whit a version minor that you have globally

and of course the most logical suggestion if you need working whit components or plugins that only work right now on 11. well is the best work local whit angular 11

  • Related