17

The recent version is 3.2.0 and I'm facing lot's of issues with it like the ionic serve command not working.

peterh
  • 11,875
  • 18
  • 85
  • 108
John Wihter
  • 189
  • 1
  • 1
  • 5

7 Answers7

33

npm install -g ionic@version_number

ex: if you want to install ionic 2.5.0,

npm install -g ionic@2.5.0

edit: to list all versions of ionic, npm info ionic

varun aaruru
  • 2,920
  • 1
  • 20
  • 36
14

You can downgrade to your old version by running below command:

npm install -g ionic@3.9.2

Get your version here

IONIC CLI VERSIONS

Sandy.....
  • 2,833
  • 2
  • 15
  • 26
Diluk Angelo
  • 1,503
  • 11
  • 21
4

You may try uninstalling it first: npm uninstall -g ionic then install it again with the version that you want to install npm install -g ionic@x.x.x

then check ionic version with ionic --version you may need to restart your terminal to get the latest version running

Peter Ye
  • 53
  • 6
2

First thing first, uninstall the current version:

    npm uninstall -g ionic

then, install the version you want :

   npm install -g ionic@"the version for example @3.20.0"
1

You just need to do like this:

npm install -g ionic@3.1.0

Changelog

Sampath
  • 63,341
  • 64
  • 307
  • 441
0

Sometimes it throws error while overwriting the existing files , so add --force

Ex, If you want to downgrade to version 3.20, run: npm i -g ionic@3.20 --force

0

I like prefer use version 6
npm install @ionic/angular@6

Binary
  • 1
  • 4