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

前端 未结 2 1661
眼角桃花
眼角桃花 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:24

    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.

提交回复
热议问题