Sunday, July 30, 2017

How to update Ionic 2 cli and libraries

The old version of Ionic had the straightforward update tool, it was enough just to run ionic lib update and it was just done. But this method no more works With Ionic 2.
Learn how to update the Ionic 2 cli and libraries.
First of all, we’ll need to upgrade the cli, it’s easy:
Than we need to get the newer package versions (with already resolved dependencies) with a simple command:
It will return list like the following:
Now you’ll need to open your package.json file (in the project root) with your favorite editor and change the package versions as in the ‘Latest’ column of output.
Than everything you’ll need to do, is just to run:

No comments:

Post a Comment