How do I upgrade to the next cordova version?

StarQuake

My project was built when Cordova 3.5.0 was out. Cordova 3.6.0 is out now.

How do I upgrade Cordova in my project?

I already did "npm -g update cordova" but that does not seem to be the version CTP uses.

Венелин Илиев

For CTP 2.0 you can edit the file platforms.js in %APPDATA%\Roaming\npm\node_modules\vs-mda\node_modules\cordova\node_modules\cord‌​ova-lib\src\cordova\platforms.js and update the versions of Cordova that should be used for each platform. You should check the github URLS listed in the file to see what versions are available and update the 'version:' elements as needed.

Using this method I changed the android section of platforms.js from :

'android' : {
    parser : './metadata/android_parser',
    url    : 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git',
    version: '3.5.0'
},

to:

'android' : {
    parser : './metadata/android_parser',
    url    : 'https://git-wip-us.apache.org/repos/asf?p=cordova-android.git',
    version: '3.5.1'
},

After editing delete the contents of the bld directory belonging to your project. Start VS, load your project and perform a clean and then a build. You can check the build output and verify that it downloads the new version of Cordova to use during the build process.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I upgrade to the latest version of Shotwell?

From Dev

How do I upgrade qt version?

From Dev

How do I upgrade Cordova 2.9.0 to 3.6 in Android Developer Tools?

From Dev

How do I upgrade PHP version to the latest stable released version?

From Dev

What version of Cordova do I have and how should I fix it?

From Java

How do I correctly upgrade angular 2 (npm) to the latest version?

From Dev

How do I upgrade Nixos to use a new channel nixos version?

From Dev

How do I upgrade the version of phpMyAdmin from 3.3 to 3.5?

From Dev

How do I upgrade the Spring version in Spring Boot

From Dev

How do I upgrade the version of phpMyAdmin from 3.3 to 3.5?

From Dev

How do I upgrade my kernel in CentOS 6 to the latest version?

From Dev

How do I upgrade Vagrant to the latest version in Ubuntu?

From Dev

How do I upgrade Nixos to use a new channel nixos version?

From Dev

How do I upgrade from a previous version of websauna?

From Dev

How do I upgrade typescript in Visual Studio Code version 1.9.1

From Dev

Cordova is running the wrong Java version. How do I get Cordova to run a specific Java version?

From Dev

How do I install a previous version of PhoneGap/Cordova

From Dev

How do I add a version specific filename to a Cordova .apk

From Dev

Upgrade Cordova Version of an iOS app

From Dev

How do I upgrade to the release version of 16.04 if I am running Beta?

From Dev

How do I upgrade OS to version 16 now that I have the ISO file

From Dev

How do I upgrade Rails?

From Dev

How do I upgrade Rails?

From Dev

How do I upgrade Gradle?

From Dev

How Do I upgrade Docker

From Dev

How do I upgrade Evince?

From Dev

How do I upgrade SpamAssassin?

From Dev

How do you upgrade Skype to the latest version?

From Dev

How can I upgrade the Ruby version on Passenger?

Related Related

  1. 1

    How do I upgrade to the latest version of Shotwell?

  2. 2

    How do I upgrade qt version?

  3. 3

    How do I upgrade Cordova 2.9.0 to 3.6 in Android Developer Tools?

  4. 4

    How do I upgrade PHP version to the latest stable released version?

  5. 5

    What version of Cordova do I have and how should I fix it?

  6. 6

    How do I correctly upgrade angular 2 (npm) to the latest version?

  7. 7

    How do I upgrade Nixos to use a new channel nixos version?

  8. 8

    How do I upgrade the version of phpMyAdmin from 3.3 to 3.5?

  9. 9

    How do I upgrade the Spring version in Spring Boot

  10. 10

    How do I upgrade the version of phpMyAdmin from 3.3 to 3.5?

  11. 11

    How do I upgrade my kernel in CentOS 6 to the latest version?

  12. 12

    How do I upgrade Vagrant to the latest version in Ubuntu?

  13. 13

    How do I upgrade Nixos to use a new channel nixos version?

  14. 14

    How do I upgrade from a previous version of websauna?

  15. 15

    How do I upgrade typescript in Visual Studio Code version 1.9.1

  16. 16

    Cordova is running the wrong Java version. How do I get Cordova to run a specific Java version?

  17. 17

    How do I install a previous version of PhoneGap/Cordova

  18. 18

    How do I add a version specific filename to a Cordova .apk

  19. 19

    Upgrade Cordova Version of an iOS app

  20. 20

    How do I upgrade to the release version of 16.04 if I am running Beta?

  21. 21

    How do I upgrade OS to version 16 now that I have the ISO file

  22. 22

    How do I upgrade Rails?

  23. 23

    How do I upgrade Rails?

  24. 24

    How do I upgrade Gradle?

  25. 25

    How Do I upgrade Docker

  26. 26

    How do I upgrade Evince?

  27. 27

    How do I upgrade SpamAssassin?

  28. 28

    How do you upgrade Skype to the latest version?

  29. 29

    How can I upgrade the Ruby version on Passenger?

HotTag

Archive