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?
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With