如何使用命令行安装旧的PhoneGap版本? [英] How can I install older PhoneGap versions using the command line?

查看:108
本文介绍了如何使用命令行安装旧的PhoneGap版本?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用命令行安装旧版本的 PhoneGap



我熟悉以下安装命令:

 $ sudo npm install -g phonegap 

但是只安装最新版本。



你需要知道确切的版本号,但这应该工作。更多信息,请点击以下链接。



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


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.

解决方案

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

这篇关于如何使用命令行安装旧的PhoneGap版本?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆