I have upgraded to ionic 4 but my project doesnt support the version now I need to downgrade to ionic 3. What should i do? [duplicate] - ionic-framework

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

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

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

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

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"

You just need to do like this:
npm install -g ionic#3.1.0
Changelog

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

Related

How to revert back to older version of Ionic

I am new in Ionic 3 CLI, I found that
Ionic run android no longer works,
It works as Ionic cordova run android,
Is there any way I can go back to IONIC older CLI?
Any help would be appreciated
Yes, You can downgrade angular-cli installation to 1 by running commands in terminal:
npm uninstall -g angular-cli
npm cache clean
npm install -g angular-cli#1.0.0

ionic1 error: TypeError: Cannot read property 'emit' of undefined

i am making a application using ionic1 and angularjs1.
Today, when i execute ionic serve command in terminal. then i got following error.
js#js:peoject$ ionic serve
[INFO] Starting server: --port=8100 --p=8100 --livereload-port=35729 --r=35729 --address=0.0.0.0 - Ctrl+C to cancel
TypeError: Cannot read property 'emit' of undefined
from last 2-3 months there was no any issue but today suddenly i faced with this issue.
My ionic version is 3.3.0
Is there anything update on ionic or what else? i dont understand.
I tried a lot and the solutions is very simple.
My previous version of ionic was 2.2.0
So, i downgrade the ionic version.
First, remove the ionic, then reinstall with your old version.
harish#harish: sudo npm uninstall -g ionic
harish#harish: sudo npm install -g ionic#2.2.0
or
harish#harish: sudo npm uninstall -g ionic
harish#harish: sudo npm install -g ionic#2.2.3
or
harish#harish: sudo npm uninstall -g ionic
harish#harish: sudo npm install -g ionic#2.3.0
Whatever the version is, just uninstall your latest ionic and install your old version.
Then the issue is solved.
I had the same error downgrade your ionic version.
sudo npm install -g ionic#2.2.3
This worked for me.
reinstall the ionic
npm uninstall -g cordova ionic
npm install -g cordova ionic
this solved my same problem

Error installing ionic on Mac OS

I'm trying to install the ionic on but it has error.
I've checked other articles here, but their solution does not help.
I am using the command:
sudo npm install -g ionic cordova
I am with:
$ npm --version
3.10.9
$ node --version
v6.9.2
And the error:
UPDATE:
There are mentions of this on the ionic forums if you do a search there
What I would so is completely remove ionic and Cordova by running
npm uninstall -g cordova
And
npm uninstall -g ionic
Then I would start the process again with
npm install -g cordova ionic
Just note that this docs say to install Cordova and then Ionic whereas it looks like you did it the other way around which could have caused some issues.

update to the latest ionic version

after ionic team has officially released ionic 1.2 versions
I checked
ionic -v
command to get my current version and I found it 1.7.12, then I did
npm install -g ionic
hopefully to update my current version and it just still on the previous version 1.7.12, so what is just the command I have to run to get the ionic 1.2 instead of ionic 1 which I already have now?
It is not a bug in npm, the 1.7.12 version that is shown when you run:
ionic -v
1.7.12
is the ionic-cli version, the command line utility, you can find it here: https://www.npmjs.com/package/ionic
The ionic 1.2 version that you are expecting, is the ionic framework version: http://code.ionicframework.com/# latest is 1.2.4 - Copenhagen
If you want to check the framework version that your app is running, go to your app directory and type:
ionic lib
Local Ionic version: 1.2.4 (<path>/myApp/www/lib/ionic/version.json)
Latest Ionic version: 1.2.4 (released 2016-01-08)
* Local version up to date
It may be bug with npm.
First Uninstall ionic and cordova using
npm uninstall cordova ionic
Then update node and npm
Install cordova and ionic
npm install -g cordova ionic
Check the version.
you can always run
sudo npm uninstall -g ionic && sudo npm install ionic

Update IONIC not working (windows)

I want to update ionic-cli to 1.7.1 i run this command
npm uninstall -g ionic
npm install -g ionic
and this
npm update -g ionic
but it won't update , when i run
ionic
it shows the version 1.6.5
what's wrong ? and how to fix it ?
i'm on Windows 10
inject this line of code in your bower.json file and run bower update
"ionic": "driftyco/ionic-bower#1.1.0",