How to install older versions of PhoneGap using the command line?

How to install an older version of PhoneGap using the command line?

I am familiar with the following installation command:

"$ sudo npm install -g phonegap" 

In this case, only the latest version is installed.

+8
command-line installation npm cordova
source share
2 answers

npm install -g phonegap@<version>

You need to know the exact version number, but that should work. Further information at the following link.

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

+13
source share

I'm sure there is a better way, but I use the commit section on the Phonegap Github page to block the actual old version numbers -

https://github.com/phonegap/phonegap-cli/commits/master

0
source share

All Articles