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.
相关问题
- Plugin with id 'com.google.gms.google-services
- Failed at the electron@1.8.2 postinstall script
- Webpack getting started, import error
- How to pass form data from Ionic 3 to PHP file?
- apk big size with ionic 4 build
相关文章
- @angular-cli install fails with deprecated request
- Ionic 4: Hardware Back Button Reloading Applicatio
- Create React App not installing, showing an error
- new field false in Package.json
- npm : Postinstall not running in docker
- ionic - Copy/paste in input field in iOS 10 not wo
- net::ERR_CONNECTION_REFUSED ionic
- Babel CLI is extremely slow
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.node_modules
, in case of errors