Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Install specific version of ng cli

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?

like image 942
Gangadhar JANNU Avatar asked Jun 26 '17 12:06

Gangadhar JANNU


People also ask

How do I upgrade ng to a specific version?

(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.


1 Answers

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 
like image 50
Ploppy Avatar answered Sep 20 '22 05:09

Ploppy