I was excited to see the Release version of Ionic, but found myself unable to update my existing project. Here is what I did.
-
run
npm install -g ionic
-
Open
bower.json
in your App's root folder (the one above www) -
You will find something like this here:
{ "name": "MyAppName", "private": "true", "devDependencies": { "ionic": "driftyco/ionic-bower#xxxxxxxx" } }
-
Change it to this (basically by changing the last line:
{ "name": "MyAppName", "private": "true", "devDependencies": { "ionic": "driftyco/ionic-bower#1.0.0-rc.1" } }
-
Save the file
-
Go to command line and run this in your App Folder
bower update ionic lib update
-
Run
ionic lib
to check the version number
Edit
This post relates to Windows OS, as I am using 64 bit Windows 7.
Best Answer
I also had a lot of problems to update an existing ionic project. This is what I did to solve the issue:
bower.json
fromwww/lib/ionic
ionic lib update
from the source project.This action will ask for confirmation, just type
yes
and your project will be updated to the latest version.