John Wihter
John Wihter

Reputation: 189

How can I downgrade my ionic cli to the previous version, I had?

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

Upvotes: 17

Views: 58399

Answers (7)

user17302177
user17302177

Reputation:

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

Upvotes: 0

Aayushi Singh
Aayushi Singh

Reputation: 1

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 [email protected] --force

Upvotes: 0

RKAISSI Youssef
RKAISSI Youssef

Reputation: 81

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"

Upvotes: 2

Diluk Angelo
Diluk Angelo

Reputation: 1503

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

npm install -g [email protected]

Get your version here

IONIC CLI VERSIONS

Upvotes: 14

Sampath
Sampath

Reputation: 65948

You just need to do like this:

npm install -g [email protected]

Changelog

Upvotes: 1

Peter Ye
Peter Ye

Reputation: 53

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 [email protected]

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

Upvotes: 4

varun aaruru
varun aaruru

Reputation: 2940

npm install -g ionic@version_number

ex: if you want to install ionic 2.5.0,

npm install -g [email protected]

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

Upvotes: 33

Related Questions