zulhfreelancer
1/4/2015 - 10:08 AM

Update NPM, Cordova & Phonegap On Mac Using Terminal

Update NPM, Cordova & Phonegap On Mac Using Terminal

===
Phonegap
===

To check current (installed) version:
phonegap -v

To check latest version in npm (not installed yet):
npm info phonegap version

To install latest version:
sudo npm update -g  phonegap

===
Cordova
===

To check current (installed) version:
cordova -v

To check latest version in npm (not installed yet):
npm info cordova version

To install latest version:
sudo npm update -g  cordova

===
NPM
===

To check current (installed) version:
npm -v

To check latest version in npm (not installed yet):
npm info npm version

To install latest version:
sudo npm update -g  npm