Ionic 2: How to update the Ionic library for an existing project?

Information cannot be found on the Ionic 2 website. For example, a project is created using Ionic library 2.0.1. How to upgrade it to Ionic library 2.1.0? What is the standard procedure? ionic lib update deprecated.

+7
npm ionic-framework ionic2
source share
1 answer

If you want to update your CLI, you need to run:

npm install -g ionic@latest

To update your project, open the package.json file and update the ionic-angular record version and any other dependencies that need to be updated. A link to package.json is here , which loads when a new project starts.

Then delete your node_modules projects and run:

npm install in the project directory.

+9
source share

All Articles