Search code examples
cordovacordova-cli

Phonegap Upgrade from 3.5 to 4.1.2-0.22.10, but when i create the project the version in always 3.5


I write here because i have a big problem with phonegap version. I have upgrade phonegap on my MacBook (Maverik 10.9.5) from 3.5 to 4.1.2-0.22.10, but when i create a new project the version is always 3.5.

$ phonegap --version
4.1.2-0.22.10

$ cordova --version
4.1.2

$ node --version
v0.10.35

Some one can help me please to solve this problem? Tnx


Solution

  • Okay, the problem isn't that your Cordova wouldn't be the newest one. Instead the base for the project is copied from GitHub project called PhoneGap Start which isn't yet updated to newer versions. On the plugin's documentation it tells

    This repository is automatically downloaded by phonegap-cli when you create a new application.

    The newest version there is 3.5.0 currently, as can be seen from the config.xml there.