Node.js – Update Ionic in the existing project

angularjsbowerionic-frameworknode.jsupdates

I was excited to see the Release version of Ionic, but found myself unable to update my existing project. Here is what I did.

  1. run npm install -g ionic

  2. Open bower.json in your App's root folder (the one above www)

  3. You will find something like this here:

     {
       "name": "MyAppName",
       "private": "true",
       "devDependencies": {
         "ionic": "driftyco/ionic-bower#xxxxxxxx"
       }
     }
    
  4. Change it to this (basically by changing the last line:

     {
       "name": "MyAppName",
       "private": "true",
       "devDependencies": {
         "ionic": "driftyco/ionic-bower#1.0.0-rc.1"
       }
     }
    
  5. Save the file

  6. Go to command line and run this in your App Folder

     bower update
     ionic lib update
    
  7. 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:

  • Remove bower.json from www/lib/ionic
  • Execute 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.