如何在Windows上安装Phonegap 3.3

时间:2014-02-05 20:09:19

标签: android ios cordova

我刚刚去了Phonegap看到我需要安装node.js才能开始使用。

我这样做了,然后按照命令行安装phonegap。

然而,它在哪里?我在程序文件文件夹中没有看到任何内容,我没有看到Eclipse,也没有关于Phonegap网站上的下一步操作的文档。我不明白为什么这条指令太模糊了?我错过了什么?我下载/安装的所有文件都去了哪里?

由于

3 个答案:

答案 0 :(得分:3)

Phonegap 3.3 installation there is no proper info in phonegap site. 

The reason of installing nodejs is, phonegap cordova are created as node modules.

Required Software’s:
Follow the steps.  1 Node Js  2 ANT  3 Android_sdk  4 JDK   

open command prompt: 
Follow the steps
C:\user\youruser>npm install -g phonegap
C:\user\youruser>npm install -g cordova
Set Environment variables:
Mycomputer -> Right Click -> properties -> Advance System settings -> Environment   
variables
set path for  1. Java JDK  2. Android SDK  3. ANT
C:\user\youruser>cordova platform add android
C:\user\youruser>phonegap create First-app
C:\user\youruser>cd First-app
C:\user\youruser>phonegap run android

Phonegap will be installed and apk will be created in bin folder. 

You will be getting 
[phonegap] detecting Android SDK environment..
[phonegap] using the local environment
[phonegap] compiling Android...
[phonegap] successfully compiled Android app
[phonegap] trying to install app onto device
[phonegap] successfully installed onto device

You can able to see phonegap modules in C:\Users\yourusername\AppData\Roaming\npm.

Hope this will be very helpful. Let me know if you face any issues.

答案 1 :(得分:2)

官方网站上的Phonegap安装步骤有些含糊不清,并且没有正确更新。

关于您的问题,我认为此帖https://stackoverflow.com/a/18751002/4277415可能会帮助您解决问题。

干杯。

答案 2 :(得分:0)