# How to update cordova and ionic?

**URL:** <https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736>\
**Category:** uncategorized\
**Created:** [May 4, 2014, 5:41pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736 "2014-05-04T17:41:57Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![biapar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/biapar/32/64378_2.png) [@biapar](https://forum.ionicframework.com/u/biapar)\
**Post date:** [May 4, 2014, 5:41pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/1 "2014-05-04T17:41:58Z")

</div>

Hi,

I use sudo `sudo npm update -g cordova ionic` to update frameworks. Is’t the right procedure?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [May 4, 2014, 6:05pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/2 "2014-05-04T18:05:00Z")

</div>

Correct, `npm update` is a built in function for node that will any packages you have installed. If things aren’t updating correctly, you can always run

```
sudo npm uninstall -g ionic && sudo npm install ionic
```

---

<div class="post-metadata">

**Author:** ![biapar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/biapar/32/64378_2.png) [@biapar](https://forum.ionicframework.com/u/biapar)\
**Post date:** [May 4, 2014, 6:24pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/3 "2014-05-04T18:24:25Z")

</div>

Ok. Thank you. I’m upgrading to latest cordova and ionic 😄

---

<div class="post-metadata">

**Author:** ![biapar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/biapar/32/64378_2.png) [@biapar](https://forum.ionicframework.com/u/biapar)\
**Post date:** [May 7, 2014, 7:11pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/4 "2014-05-07T19:11:06Z")

</div>

A question. This command is for update the framework.

_How to upgrade a solution or package via command line?_

The simple solution is download the latest Ionic package and overwrite files into lib folder with thats of downloaded pack, but version.json file is not updated.

---

<div class="post-metadata">

**Author:** ![olivererxleben](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/olivererxleben/32/131148_2.png) [@olivererxleben](https://forum.ionicframework.com/u/olivererxleben)\
**Post date:** [May 19, 2014, 3:22pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/5 "2014-05-19T15:22:37Z")

</div>

so `npm update -g ionic` and `ionic build ios`, e.g. will not update the project? And it will NOT “making new ionic features available”?

This should be possible.

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [May 19, 2014, 4:02pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/6 "2014-05-19T16:02:06Z")

</div>

`$ sudo npm update -g ionic` will update the CLI.

`$ sudo npm update -g cordova` will update the cordova CLI, which ionic is built onto of.

`cordova platform update [platform]` updates a project to use the latest version of cordova (3.4.0 to 3.4.1)

We don’t have a CLI command to update the local copies of Ionic (the project css and javascript), but I mention it to the devs you can make an issue for it on the github page

> **[ionic-team/ionic-cli](https://github.com/ionic-team/ionic-cli)**
>
> ionic-cli - The Ionic Command Line Utility

---

<div class="post-metadata">

**Author:** ![biapar](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/biapar/32/64378_2.png) [@biapar](https://forum.ionicframework.com/u/biapar)\
**Post date:** [July 4, 2014, 8:07am UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/7 "2014-07-04T08:07:38Z")

</div>

> [@biapar](#):
>
> The simple solution is download the latest Ionic package and overwrite files into lib folder with thats of downloaded pack

The simple solution is download the latest Ionic package and overwrite files into lib folder with thats of downloaded pack

---

<div class="post-metadata">

**Author:** ![praveen](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@praveen](https://forum.ionicframework.com/u/praveen)\
**Post date:** [July 7, 2014, 3:42pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/8 "2014-07-07T15:42:09Z")

</div>

Previously I was using `1.0.0-beta.8` and now I have want to use the latest release `1.0.0-beta.9`. Can you please let me know how to upgrade it?

Thanks

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 7, 2014, 3:44pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/9 "2014-07-07T15:44:31Z")

</div>

If your project was made by our CLI, follow the directions in the readme file

> **[ionic-team/ionic-app-base](https://github.com/ionic-team/ionic-app-base)**
>
> ionic-app-base - A base starting point for Ionic, with Cordova, Bower, and Gulp.

---

<div class="post-metadata">

**Author:** ![praveen](https://avatars.discourse-cdn.com/v4/letter/p/3ec8ea/32.png) [@praveen](https://forum.ionicframework.com/u/praveen)\
**Post date:** [July 7, 2014, 4:02pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/10 "2014-07-07T16:02:31Z")

</div>

Thanks, Actually I didn’t read your previous comment. Actually I wanted to updated to latest build to fix this [issue](https://github.com/driftyco/ionic/issues/1654). But it seems the scroll position of a list is not remembered. Any thoughts?

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 7, 2014, 4:11pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/11 "2014-07-07T16:11:39Z")

</div>

It should be in the nightly builds, which you can get with this bower command.

```
bower install driftyco/ionic-bower#master

```

> **[ionic-team/ionic-bower](https://github.com/ionic-team/ionic-bower)**
>
> ionic-bower - Bower repository for Ionic

---

<div class="post-metadata">

**Author:** ![deux](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@deux](https://forum.ionicframework.com/u/deux)\
**Post date:** [July 7, 2014, 5:13pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/12 "2014-07-07T17:13:02Z")

</div>

I keep updating my cordova but still gets the same error when i create a New project saying unadble to add plugins perhaps my cordova is outdated!! Please help

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 7, 2014, 5:27pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/13 "2014-07-07T17:27:59Z")

</div>

What commands are you entering?

---

<div class="post-metadata">

**Author:** ![deux](https://avatars.discourse-cdn.com/v4/letter/d/bcef8e/32.png) [@deux](https://forum.ionicframework.com/u/deux)\
**Post date:** [July 7, 2014, 5:36pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/14 "2014-07-07T17:36:40Z")

</div>

i did npm install -g cordova

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [July 7, 2014, 5:40pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/15 "2014-07-07T17:40:05Z")

</div>

After you update your global install of cordova, you need to update each project as well.

```
$ cordova platform update android
   
$ cordova platform update ios
```

---

<div class="post-metadata">

**Author:** ![colllin](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/colllin/32/65111_2.png) [@colllin](https://forum.ionicframework.com/u/colllin)\
**Post date:** [September 11, 2014, 3:13am UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/16 "2014-09-11T03:13:14Z")

</div>

# `$ ionic lib update`

---

<div class="post-metadata">

**Author:** ![er\_harmandeepsingh](https://avatars.discourse-cdn.com/v4/letter/e/34f0e0/32.png) [@er\_harmandeepsingh](https://forum.ionicframework.com/u/er_harmandeepsingh)\
**Post date:** [March 10, 2016, 7:03am UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/17 "2016-03-10T07:03:46Z")

</div>

hii,  
i just install cordova and ionic but it is still showing “out of date” massage its may be the latest version i think so  
but i dont know why this is showing this  
actually i’m not a developer  
i just start by watching some videos  
and i’m able to create still testing app but after that app and i’m trying to create another one but i’m not able to create not even to index file just couz of out of cordova and ionic please help ☹ ☹

---

<div class="post-metadata">

**Author:** ![mhartington](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/mhartington/32/137757_2.png) [@mhartington](https://forum.ionicframework.com/u/mhartington)\
**Post date:** [March 10, 2016, 9:29pm UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/18 "2016-03-10T21:29:04Z")

</div>

Hey There!

So could you provide the output from `ionic -v` and `cordova -v` in your command line?

Also, `node -v` and `npm -v`?

---

<div class="post-metadata">

**Author:** ![jackvial](https://sea1.discourse-cdn.com/ionicframework/user_avatar/forum.ionicframework.com/jackvial/32/112238_2.png) [@jackvial](https://forum.ionicframework.com/u/jackvial)\
**Post date:** [December 27, 2016, 2:55am UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/19 "2016-12-27T02:55:01Z")

</div>

> [@mhartington](#):
>
> sudo npm uninstall -g ionic && sudo npm install ionic

You need to add -g to the second command

---

<div class="post-metadata">

**Author:** ![bimal01537](https://avatars.discourse-cdn.com/v4/letter/b/a9adbd/32.png) [@bimal01537](https://forum.ionicframework.com/u/bimal01537)\
**Post date:** [January 9, 2017, 9:33am UTC](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736/20 "2017-01-09T09:33:55Z")

</div>

I am trying to uninstall the old version ionic and update new one. But what happens is every time i uninstall the ionic it show the old version. And even after the updates are completed it shows the same.  
Please help me solving this problem mhartington.  
ionic version: 1.7.16  
node version: 6.9.4  
npm version: 4.0.5

[Next page](https://forum.ionicframework.com/t/how-to-update-cordova-and-ionic/3736.md?page=2)
