Manspof
Manspof

Reputation: 357

Angular downgrade from version 5 to 4

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

npm install -g [email protected]

I get the error

npm ERR! code ETARGET
npm ERR! notarget No matching version found for [email protected]

Upvotes: 11

Views: 32437

Answers (3)

zgue
zgue

Reputation: 3850

If you want to install this specific version of the angular cli you have to use this command:

npm install -g @angular/[email protected]

Perhaps you have another version currently installed on your system you should read this also.

Upvotes: 18

Suman Satpathy
Suman Satpathy

Reputation: 31

To install Angular 4:

  1. Open CMD
  2. npm install -g @angular/[email protected]

Check all the versions in below link:

npm angular cli versions

Upvotes: 0

Matias Miraglio
Matias Miraglio

Reputation: 553

The version of angular used in a project is determined by the version of angular cli installed. any specific version of angular cli can be installed with the following command:

npm install --global @angular/[email protected].

example:

npm install --global @angular/[email protected]

even if you have another version of angular cli (either newer or older) installed. That won't cause issues.

Upvotes: 0

Related Questions