How to install specific version of ionic via npm

Linux:

sudo npm install -g  [email protected]

Mac

npm install -g  [email protected]

Replace 2.2.0 for the version you want


Syntax

To install a specific version through npm, the following syntax should be followed:

npm install -g ionic@VERSION
  • Where VERSION is the number of the version we want to install from Ionic

Example

Let's say that we want to install IONIC 1.4.0, because you should specify:

npm install -g [email protected]

Notes

To see all available versions use: npm info ionic.


For example you want install 3.2.0 of ionic version then you need to install it by using below command.

npm install [email protected] --save

If you want to install the latest version of ionic ,but already if you have the old one then use

npm install ionic@latest --save

Tags:

Node.Js

Ionic