'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?
Solution 1:[1]
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.
Solution 2:[2]
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
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|---|
| Solution 1 | Arthur Barbosa |
| Solution 2 | rene rios rodriguez |
