DZone
Mobile Zone
Thanks for visiting DZone today,
Edit Profile
  • Manage Email Subscriptions
  • How to Post to DZone
  • Article Submission Guidelines
Sign Out View Profile
  • Post an Article
  • Manage My Drafts
Over 2 million developers have joined DZone.
Log In / Join
  • Refcardz
  • Trend Reports
  • Webinars
  • Zones
  • |
    • Agile
    • AI
    • Big Data
    • Cloud
    • Database
    • DevOps
    • Integration
    • IoT
    • Java
    • Microservices
    • Open Source
    • Performance
    • Security
    • Web Dev
DZone > Mobile Zone > How do you check (and update) your PhoneGap version in 3.0?

How do you check (and update) your PhoneGap version in 3.0?

Raymond Camden user avatar by
Raymond Camden
·
Sep. 06, 13 · Mobile Zone · Interview
Like (0)
Save
Tweet
6.03K Views

Join the DZone community and get the full member experience.

Join For Free

a tip of the rage wolf to fellow adobian brian leroux for his help with this blog post. and by help, i mean he basically explained it all to me and i'm just making it pretty.

one of the big changes to phonegap 3.0 is how you install it. previously, you would download a zip file, expand it, and have all the bits you need. now the installation process has you use npm (node package manager) to grab the bits.

i've been using node and npm for a while, but i'm definitely still a bit unsure of how it works. the question i had was, how would i be able to tell when a new version was released and how would i get my copy updated?

first, remember that the phonegap cli has a -v argument that tells you the current version you have installed:


currently, the phonegap site only mentions 3.0 and not anything more specific, so to compare your version to the latest in npm you would do "npm info phonegap version". this is demonstrated below:

in this case, my version is the same, but if i wanted to update it, i'd run: npm update -g phonegap . i always use sudo in front but you may not have to do that (especially on windows ;) ).

i hope this helps. tomorrow morning i'll be blogging about how plugins have changed.



Npm (software) POST (HTTP) Fellow (computing) Sudo Brian (software) Grab (software) Blog Download

Published at DZone with permission of Raymond Camden, DZone MVB. See the original article here.

Opinions expressed by DZone contributors are their own.

Popular on DZone

  • Five Tips to Fasten Your Skewed Joins in Apache Spark
  • Handling Multiple Browser Windows and Tabs in Selenium PHP
  • Testing Your Infrastructure as Code Using Terratest
  • Python Class Attribute: Class Attribute vs. Instance Attribute

Comments

Mobile Partner Resources

X

ABOUT US

  • About DZone
  • Send feedback
  • Careers
  • Sitemap

ADVERTISE

  • Advertise with DZone

CONTRIBUTE ON DZONE

  • Article Submission Guidelines
  • MVB Program
  • Become a Contributor
  • Visit the Writers' Zone

LEGAL

  • Terms of Service
  • Privacy Policy

CONTACT US

  • 600 Park Offices Drive
  • Suite 300
  • Durham, NC 27709
  • support@dzone.com
  • +1 (919) 678-0300

Let's be friends:

DZone.com is powered by 

AnswerHub logo