I'm using angular 2.4.9 for my application development so I need to use specific version of ng cli instead of the latest one.
I know the below command will install latest version of ng cli
npm install -g @angular/cli
But how can I install specific version of ng cli?
(you can define specific versions of the packages by going to npm packages, for example - @angular/[email protected] as 9.1. 2 is the latest stable release of @angular/core package for angular9). This will update your project to angular v9.
This command would install the 1.0.0 version:
npm install -g @angular/[email protected]
You can see the available versions with the following command:
npm view @angular/cli
NB: You can also install the latest available version:
npm install @angular/cli@latest
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With