How to update my phonegap version?

后端 未结 8 1732
感动是毒
感动是毒 2021-02-01 05:37

How can I update my PhoneGap version in my project?

I have download the latest version of phonegap..but how to update?

I\'ve tried grep myAppPath .ipa \'uniqueId

相关标签:
8条回答
  • 2021-02-01 06:03

    For Phonegap 3 installed from NPM

    sudo npm update -g  phonegap
    

    To check current version

    phonegap -v
    

    To check latest version in npm

    npm info phonegap version
    
    0 讨论(0)
  • 2021-02-01 06:05

    Hi Simplest way to ensure and update latest phonegap version in your system.

    1. Ensure you are using latest phonegap version. Check in github.com Url:https://github.com/phonegap/phonegap-cli In pannel header you can able to see the version 3.4.0-0.19.7 latest commit c085b115ef Lorin Beer lorinbeer authored 6 days ago
    2. Check your phonegap version C:\Users\user1>phonegap version 3.4.0-0.19.6
    3. Update your phonegap latest version by using windows : C:\Users\user1>npm update -g phonegap Mac: sudo npm update -g phonegap

       or
      

      windows
      C:\Users\user1>npm install -g phonegap@3.4.0-0.19.7 mac sudo npm install -g phonegap@3.4.0-0.19 You can ensure you are using latest version of phonegap......

    0 讨论(0)
  • 2021-02-01 06:06
    Mac Setup
    
     Step 1:Install Nodejs. You can find a tutorial here on how to setup Node.
            We will leverage Node Package Manager to setup Cordova & PhoneGap
     Step 2: Install PhoneGap – Run sudo npm install -g phonegap
     Step 3: Install Cordova Command Line tools – Run sudo npm install -g cordova
     Step 4: Install HomeBrew. We will use HomeBrew to setup Ant on our system.
     If you don’t have HomeBrew, run 
     ruby -e "$(curl -fsSL https://raw.github.com/Homebrew/homebrew/go/install)"
     at your terminal.
     Step 5: Install Apache-Ant. Run brew update & then install ant brew install ant
     Step 6: For iOS development, Run to the App Store & Download the latest
      version of XCode.   After the installation is completed, 
      launch the application & accept the license, terms.
    
    iOS setup
    
    Step 1: Create a new folder and name myApp.
    Step 2: Open terminal here & Run phonegap create myFirstApp. 
    This will setup the required files for a startup project.
    Step 3: cd myFirstApp
    Step 4: Then lets add a iOS platform instance. Run cordova platform add ios
    Step 5: Build the iOS project. Run cordova build ios After a stream of messages, 
    you should see something like this
    
    0 讨论(0)
  • 2021-02-01 06:11

    Best option might be to create a new project in 2.7 using the getting started guides and then copy over your old project into the new project. It is not super easy, but probably the best way.

    0 讨论(0)
  • 2021-02-01 06:12

    Updating Cordova and Your Project

    After installing the cordova utility, you can always update it to the latest version by running the following command:

    $ sudo npm update -g cordova
    

    Use this syntax to install a specific version:

    $ sudo npm install -g cordova@3.1.0-0.2.0
    

    Run cordova -v to see which version is currently running. Run the npm info command for a longer listing that includes the current version along with other available version numbers:

    $ npm info cordova
    
    0 讨论(0)
  • 2021-02-01 06:15

    Check out the instructions at: http://docs.phonegap.com/en/2.3.0/guide_upgrading_index.md.html#Upgrading%20Guides

    0 讨论(0)
提交回复
热议问题