Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Update Phonegap project from 3.0 to 3.1

Tags:

cordova

How can I update an existing 3.0 project to the newest phonegap version 3.1? I saw the original cordova has a update command but couldn't found this command in the phonegap CLI.

like image 278
Fabian Raymond Diehl Avatar asked Oct 10 '13 09:10

Fabian Raymond Diehl


1 Answers

I got the same problem. My solution was to install cordova as same as contained by phonegap.
Firstly, run npm list -g to confirm cordova version on phonegap.

└─┬ [email protected]
  ├── [email protected]
  ├─┬ [email protected]  <-- Pick this version
  │ ├─┬ [email protected]
  │ │ └── [email protected]
  │ ├─┬ [email protected]

Then you could install cordova for the version.

sudo npm install -g [email protected]

You could use update command to your project. For example:

cordova platform update ios

It was working for me.

like image 71
hosokaws Avatar answered Nov 05 '22 15:11

hosokaws