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

前端 未结 2 1655
眼角桃花
眼角桃花 2021-01-02 14:02

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 procedur

2条回答
  •  时光取名叫无心
    2021-01-02 14:44

    You can also go to your project directory and type:

    1. npm install ionic-angular@latest --save
    2. 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

提交回复
热议问题