首页 > 代码库 > Install PhoneGap

Install PhoneGap

To Install, ensure that you have NodeJS installed, then open your commandline and run the following:

$ sudo npm install -g phonegap

Once installation completes, you can invoke phonegap on command line for further help.

 


 

Usage

$ phonegap create my-app$ cd my-app$ phonegap run android        

Learn more at docs.phonegap.com

 

 

我搞不懂phonegap命令和cordova命令的差别

cordova create hello com.example.hello HelloWorld
 $ cordova platform add ios    $ cordova platform add amazon-fireos    $ cordova platform add android    $ cordova platform add blackberry10    $ cordova platform add firefoxos
  $ cordova platform add wp7    $ cordova platform add wp8    $ cordova platform add windows8    $ cordova platform add amazon-fireos    $ cordova platform add android    $ cordova platform add blackberry10    $ cordova platform add firefoxos

 

Install PhoneGap