Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I install older PhoneGap versions using the command line?

How can I install an older version of PhoneGap using a command line?

I am familiar with the following installation command:

"$ sudo npm install -g phonegap"

This however only installs the latest version.

like image 823
Roy Avatar asked Mar 10 '14 21:03

Roy


People also ask

What is the command to install PhoneGap?

PhoneGap and Cordova Install the plugin on the Settings/Preferences | Plugins page, tab Marketplace. PhoneGap and Apache Cordova are frameworks for developing mobile application with single HTML, CSS, and JavaScript/TypeScript code base and targeting various mobile platforms, including Android.

Which command is used to upgrade PhoneGap?

This is demonstrated below: In this case, my version is the same, but if I wanted to update, I'd run: npm update -g phonegap.


1 Answers

npm install -g phonegap@<version>

You need to know the exact version number, but this should work. More info at the following link.

https://www.npmjs.org/doc/cli/npm-install.html

like image 179
Dawson Loudon Avatar answered Sep 22 '22 03:09

Dawson Loudon