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
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.
npm view @angular/cli versions command, its does not displays version 4 and 5ng -v and see whats Angular CLI versionnpm install -g @angular/cli and it downloaded the latest version of angular cli and angularnpm install -g @angular/[email protected] instead!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
@angular/cli. Prior to the v6 release the version numbers were out of sync. Some brief research recommends cli version1.4.10for Angular 4 and1.7.4for Angular 5. YMMV as these are old packages and may have bugs that were addressed in later release.