Upgrade Ionic 5.0 to 5.3 Commands - ionic-framework

What is the proper set of npm commands to update Ionic from v5.0 to v5.3.1 (latest release), as well as, bump the version of Capacitor, Ionic Native, and the dev dependencies appropriately?
I can't find an update guide with commands in the Ionic docs unlike in Angular where you would follow the update steps on https://update.angular.io. They don't seem to indicate whether the CLI version should match the Ionic version, or whether the version of Capacitor for a specific version of Ionic or the CLI is required, or if none of that matters.
Would I run these commands:
// dependencies
npm install #capacitor/android#latest
npm install #capacitor/core#latest
npm install #capacitor/ios#latest
npm install #ionic/core#latest
npm install #ionic-native/core#latest
npm install #ionic-native/in-app-browser#latest
npm install #ionic-native/splash-screen#latest
npm install #ionic-native/status-bar#latest
npm install #ionic/angular#latest
npm install #ionic/storage#latest
// dev dependencies
npm install #capacitor/cli#latest
npm install #ionic/angular-toolkit#latest
npm install #ionic/lab#latest
or equivalently just run npm upgrade <LIST_OF_ABOVE_PKGS>? and are there dependencies between Ionic, Ionic CLI, Capacitor, and Ionic Native?

run at cmd in "npm install -g ionic#5.3.2"

Related

Using a Cordova plugin with Capacitor

I've been working through this example:
https://capacitor.ionicframework.com/docs/basics/cordova
I've run:
npm install cordova-plugin-qrscanner
npx cap sync
and I can see the plugin installed in my node_modules.
What I do not know how to do is call one of the functions on the cordova-plugin. I'm wondering if I need a packager like webpack?
I'm also confused as to how this works if the cordova plugin contains native swift (or other) code.
Remember you can install the native wrapper too. It should work just the same as using it with Cordova.
npm install #ionic-native/qr-scanner
From:
ionic cordova plugin add cordova-plugin-qrscanner
npm install #ionic-native/qr-scanner
To:
npm install cordova-plugin-qrscanner
npm install #ionic-native/qr-scanner
npx cap sync
https://ionicframework.com/docs/native/qr-scanner

error 404 Not Found: #ionic/cli-utils#1.13.1 during npm install

After installing cordova using
npm install cordova -g
I tried to install ionic, using
npm install ionic -g
but got
404 Not Found: #ionic/cli-utils#1.13.1
combining both statements as
npm install cordova ionic -g
generates the same error.
What could be the problem here? I use Artifactory as node modules proxy by the way, which generally works well in my environment.

ionic v1 TypeError: _.set is not a function

I get the following error in my project:
TypeError: _.set is not a function
It doesn't matter if I type ionic info or ionic cordova build android
ionic cli always asks
The Ionic CLI (local version) has an update available (3.7.0 => 3.9.2)! Would you like to install it? Yes / No
Even if I type No I always get this error message.
Try these steps
npm uninstall --save-dev --save-exact #ionic/cli-plugin-cordova
npm uninstall --save-dev --save-exact #ionic/cli-plugin-ionic1
npm uninstall --save-dev --save-exact #ionic/cli-plugin-gulp
outdated version of the inquirer npm module
npm install inquirer
(Should update it from version 3.0 to 5.0 or so)

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.

Error while installing the ionic framework

I want to install the ionic framework on my windows 8 laptop but it is showing the following warning when i am trying to use the command
npm install -g cordova
I am already installed
1.Nodejs
2.Git-scm
Please Help me to install the ionic framework
Install all necessary dependencies. http://ionicframework.com/docs/guide/installation.html
Download and Install node.js
Install Cordova using the command: npm install -g cordova
Finally install Ionic Framework using the command: npm install -g ionic