Currently my Ionic is running on "#ionic/angular": "^5.0.0". ionic -v is 6.17.1. I can't find a way in the documents to update my ionic to 5.7.0 Potassium.
The following did not work:
npm install -g #ionic/cli#latest
try npm update in your project root to update all dependencies.
if you just want to update ionic/angular or just a single module.
try: npm i #ionic/angular#latest
Related
My Ionic information is -
I want to upgrade it to latest veriosn i.e 4.7.0, How to do this?
You should take a look at the release notes to see how to install this (and every) version of Ionic 4.
With this version comes support for Angular 8! Follow the below steps
to update.
1) Update #ionic/angular and #ionic/angular-toolkit to the latest
releases:
npm install #ionic/angular#4.7.0
npm install #ionic/angular-toolkit#2.0.0 -D
2) Update #angular/core and #angular/cli:
npx ng update #angular/core #angular/cli
3) Update #angular-devkit dependencies:
npm i #angular-devkit/architect#latest #angular-devkit/build-angular#latest #angular-devkit/core#latest #angular-devkit/schematics#latest
View our Angular 8 Update Guide for tips on potential issues!
Once that's ready, you can finally update the Ionic version:
npm install #ionic/angular#4.7.0 --save-exact
using specific version can achive
globally
npm install -g ionic#4.7.0
locally
npm install ionic#4.7.0
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 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.
Can't find any info on Ionic 2 website. For example, a project is created with Ionic library 2.0.1. How do I update it to Ionic library 2.1.0? What is the standard procedure? ionic lib update is deprecated.
If you want to update your CLI, you need to run:
npm install -g ionic#latest
For updating your project, open your package.json and update the version of ionic-angular entry and any other dependencies that need to be updated. Reference to a package.json is here which is the one that is downloaded when you start a new project.
Then delete your projects node_modules and run:
npm install in your project directory.
You can also go to your project directory and type:
npm install ionic-angular#latest --save
npm install #ionic/app-scripts#latest --save-dev
In my case, npm install -g ionic#latest installed globally the latest ionic but it didn't update the ionic version of my project. Only the above solution worked.
PS 1: I'm using ionic 3
PS 2: Delete the project's folder node_modules, in case of errors
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",