I have ionic cli installed in my PC
Windows 10 OS
as per new ionic release the beta has to be uninstalled and new ionic need to be installed.
https://github.com/driftyco/ionic/releases
But when I try to uninstall ionic using npm
npm uninstall -g ionic
also
npm uninstall -g ionic#2.0.0-beta.25
after uninstall
I did
npm list -g
the ionic was not shown in the output.
But upon everything when I type
ionic -v or ionic --version
I still see ionic 2.0.0-beta25 in my console.
Tried this multiple times and also there was a solution in forum by one who says there might be old entry. But I am not sure from where this is getting picked.
Is there a way to find out where npm is picking this or where it is installed?
I cant find it under my npm directory.
C:\Users\Bala\AppData\Roaming\npm\node_modules
Output of Where ionic
C:\>where ionic
C:\Program Files (x86)\nodejs\ionic
C:\Program Files (x86)\nodejs\ionic.cmd
Related
ionic -v results in this warning:
[WARN] Detected locally installed Ionic CLI, but it’s too old -- using global CLI.
How to uninstall local Ionic CLI?
ionic-cli has been updated to version 4.0.1 a couple of days ago.
https://github.com/ionic-team/ionic-cli/blob/develop/CHANGELOG.md
You should remove local cli by npm remove ionic --save-dev and use global one instead.
npm i -g ionic
PS: For ionic v1 project, you have to install #ionic/v1-toolkit now.
https://www.npmjs.com/package/#ionic/v1-toolkit
I had this issue on my app as well.
I no longer had '#ionic/cli' or 'ionic' as a dependency, but every time I re-ran "npm i" it would return as a locally installed item. Looking through my package-lock.json I saw that it was also being installed as a dependency of #types/ionic which I then removed and solved this issue as well.
Remove old ionic:
npm remove ionic
And then install ionic v 4.0.1:
npm install ionic#latest --save
Remove local Ionic CLI npm package:
npm rm ionic --save
I'm trying to install the Ionic framework with npm. It successfully installed. But when I try installing new versions of Ionic and Cordova, I was unable to install and Error messages are coming frequently in the ubuntu terminal.
I had a same problem but i recovered it using following command:
npm install -g cordova ionic --verbos
if its not work then you need to try yarn. you can download and install form https://yarnpkg.com/lang/en/docs/install/ this website
After install, run the following command
yarn add global cordova
yarn add global 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
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.
I have been trying to update Ionic CLI, I can use the install from NPM and it says it is installing version 2, but if I run Ionic --v it returns 1.7.15. I am guessing it is installed locally, but not sure how I can remove it to let it use the updated global one. I have tried manually deleting from the user node_modules and that. Any ideas?
You should just be able to run npm install -g ionic#2.2.2 in terminal and it will update the global version of ionic.
If that doesn't work then just remove ionic (npm uninstall -g ionic) and install again using the command above.