How to install Ionic 2 RC2


Just thought I would post my experiences trying to update a project to RC2, it took some digging but I finally got it.

I was trying to upgrade from RC0, but can’t seem to get it installed. Tried:

npm install -g ionic

Still showing:

Your system information:

ordova CLI: 6.3.1
Ionic Framework Version: 2.0.0-rc.0
Ionic CLI Version: 2.1.12
Ionic App Lib Version: 2.1.7
Ionic App Scripts Version: 0.0.45
ios-deploy version: Not installed
ios-sim version: Not installed
OS: Windows 7
Node Version: v6.7.0
Xcode version: Not installed

(Not sure why “Cordova” is missing a “C”)

Then tried:

npm uninstall -g ionic
npm install -g ionic

No dice.


npm install -g ionic@latest

FINALLY, dug around in the changelog and found the final steps up updating the package.json to RC2 values, and the kicker – deleting the node_modules folder and then running ‘npm install’.

This finally got my runtime environment to register as 2.0.0.rc2.

Next – I was getting a missing service-worker.js and manifest.json file error in the build, as described here. Sovled by moving the files from my www/assets folder into the src folder.

FINALLY – the whole reason to upgrade (to fix a problem with the build process copying source files into the /src folder) was not fixed. You can read about it here.

Hopefully this is helpful for someone.


Ionic 2 RC0: Build process creating files in /src that break later builds