0

i have been trying to customize my angular cli since a package only works with an earlier angular version. globally my anuglar version is 15.2.9. now when i run ng new and create a new angular project i see @angular/cli 16 in my package.json though. how can i bring this to 15.2.9?

The following similar question did not help: How to downgrade Angular project version from 12.2.5 to 12.2.1?

enter image description here

enter image description here

duritella
  • 63
  • 1
  • 5
  • Does this answer your question? [Global Angular CLI version greater than local version](https://stackoverflow.com/questions/44525746/global-angular-cli-version-greater-than-local-version) – Rituparna Warwatkar Aug 06 '23 at 02:48
  • If you use windows try to install nvm-windows (node version manager) to switch from one node version to another one https://learn.microsoft.com/en-us/windows/dev-environment/javascript/nodejs-on-windows. If you use ubuntu or mac, just type in google 'nvm'. It does same thing but instalation is easier. – Evgeny Gurevich Aug 06 '23 at 07:22

1 Answers1

0

According to this Angular compatibility table, you need to ensure that your NodeJS version is 18.10. Then you will be able to generate a new Angular project with 15.2 version. I tried it out myself & it works.


ByteBuddy
  • 365
  • 1
  • 8