Reputation: 357
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
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
Reputation: 31
To install Angular 4:
npm install -g @angular/[email protected]
Check all the versions in below link:
Upvotes: 0
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