0

I wanted to create angular 9 application. What I did was

  1. Create a empty folder
  2. Install angular CLI version (npm i @angular/cli@9)
  3. in same path create application (ng new testApp)

inside new app still have angular version 15. How can I fix this

Outside the new app

jhon
  • 11
  • 4
  • Why would you want to create a new app using a version of angular that is [no longer under support](https://angular.io/guide/releases#actively-supported-versions)? – meriton Dec 04 '22 at 08:38

1 Answers1

0

Try these commands:

npm uninstall -g @angular/cli

npm cache clean --force

npm install -g @angular/cli@9
Tyler2P
  • 2,324
  • 26
  • 22
  • 31
Mouayad_Al
  • 1,086
  • 2
  • 13
  • I dont want to change the globel version – jhon Dec 04 '22 at 08:52
  • try to change angular cli version from package.json check this answer here please: https://stackoverflow.com/questions/69976148/how-to-downgrade-angular-project-version-from-12-2-5-to-12-2-1 – Mouayad_Al Dec 04 '22 at 08:58