Reputation: 13
How can install a specific version of Angular 4 using node package manager?
I ran npm view @angular/cli versions
command , the available version displayed are
I could not see version 4 and 5 in the list how could i download the version 4 or 5
Upvotes: 0
Views: 1727
Reputation: 680
To install a particular version you need to run the following command line
npm install -g @angular/cli@<version>
Example:
npm install -g @angular/[email protected]
You can see the available versions with the following command:
npm view @angular/cli
Upvotes: 1
Reputation: 8868
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 an other version currently installed on your system you should read this also.
source: Angular downgrade from version 5 to 4
Upvotes: 1