Angular downgrade from version 5 to 4

I want to create an angular 4 project instead of 5. my angular cli version 1.5.0 when I run this command to downgrade to angular cli 4

npm install -g angular-cli@1.4.9 

I get an error

 npm ERR! code ETARGET npm ERR! notarget No matching version found for angular-cli@1.4.9 
+8
source share
3 answers

If you want to install this particular version of angular cli, you should use this command:

 npm install -g @angular/ cli@1.4.9 

Perhaps a different version is installed on your system, you should also read this .

+14
source

The version of angular used in the project is determined by the version of angular cli. Any particular version of Angle Cli can be installed with the following command:

npm install --global @angular/ cli@xxx .

example:

npm install --global @angular/ cli@1.6.6

even if you have a different version of angular cli installed (newer or older). This will not cause a problem.

0
source

To install Angular 4:

  1. Open CMD
  2. npm install -g @angular/ cli@1.4.9

Check all versions in the link below:

npm corner versions of Cli

0
source

Source: https://habr.com/ru/post/1273217/


All Articles