Update Phonegap Project from 3.0 to 3.1

How to upgrade an existing project 3.0 to the latest version of the phone version 3.1? I saw that the original cord command has an update command, but could not find this command in the phone saver CLI.

+7
cordova
source share
2 answers

I have the same problem. My solution was to install the cordova in the same way as with a phone saver.
First, run npm list -g to confirm the cordova version by telephone stumble.

 └─┬ phonegap@3.1.0-0.15.0 β”œβ”€β”€ colors@0.6.0-1 β”œβ”€β”¬ cordova@3.1.0-0.1.0 <-- Pick this version β”‚ β”œβ”€β”¬ elementtree@0.1.5 β”‚ β”‚ └── sax@0.3.5 β”‚ β”œβ”€β”¬ express@3.0.0 

Then you can install the cord for the version.

 sudo npm install -g cordova@3.1.0-0.1.0 

You can use the update command for your project. For example:

 cordova platform update ios 

This worked for me.

+10
source share

Apache Cordova CLI Update

 sudo npm update -g cordova 

for linux

for windows without 'sudo'

0
source share

All Articles