i have a source code of a mobile application written using phonegap and i want to build it to the Android (APK) and IOS versions, the source code is larger than that using phone gap online build service or XDK online build service so i tried to install phonegap and build my application using eclipse for android and xcode for ios.
i already have JDK, Android studio and i also configured all the needed configuration for JAVA, Android, Git in System Variable path key.
When i using command line to install phone gap like this "npm install -g phonegap" i have a lot of warnings and errors:
C:\Users\ahmed.marzouk>npm install -g phonegap
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config -
-get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:751:12)
npm WARN addRemoteGit at ChildProcess.emit (events.js:110:17)
npm WARN addRemoteGit at maybeClose (child_process.js:1015:16)
npm WARN addRemoteGit at Socket.<anonymous> (child_process.js:1183:11)
npm WARN addRemoteGit at Socket.emit (events.js:107:17)
npm WARN addRemoteGit at Pipe.close (net.js:485:12)
npm WARN addRemoteGit git+https://github.com/filmaj/node-plist.git resetting re
mote C:\Users\ahmed.marzouk\AppData\Roaming\npm-cache\_git-remotes\https-github-
com-filmaj-node-plist-git-653fe22e because of error: { [Error: Command failed: g
it -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.ori
gin.url' }
npm WARN addRemoteGit Error: Command failed: git -c core.longpaths=true config -
-get remote.origin.url
npm WARN addRemoteGit
npm WARN addRemoteGit at ChildProcess.exithandler (child_process.js:751:12)
npm WARN addRemoteGit at ChildProcess.emit (events.js:110:17)
npm WARN addRemoteGit at maybeClose (child_process.js:1015:16)
npm WARN addRemoteGit at Socket.<anonymous> (child_process.js:1183:11)
npm WARN addRemoteGit at Socket.emit (events.js:107:17)
npm WARN addRemoteGit at Pipe.close (net.js:485:12)
npm WARN addRemoteGit git+https://github.com/imhotep/plugman.git#0.5.7 resettin
g remote C:\Users\ahmed.marzouk\AppData\Roaming\npm-cache\_git-remotes\https-git
hub-com-imhotep-plugman-git-20c32d58 because of error: { [Error: Command failed:
git -c core.longpaths=true config --get remote.origin.url
npm WARN addRemoteGit ]
npm WARN addRemoteGit killed: false,
npm WARN addRemoteGit code: 1,
npm WARN addRemoteGit signal: null,
npm WARN addRemoteGit cmd: 'git -c core.longpaths=true config --get remote.ori
gin.url' }
npm WARN engine ncallbacks#1.0.0: wanted: {"node":"~0.6.7"} (current: {"node":"0
.12.5","npm":"2.11.2"})
-
> cordova#2.7.4 install C:\Users\ahmed.marzouk\AppData\Roaming\npm\node_modules\
phonegap\node_modules\cordova
> node bootstrap.js
SUCCESS: Minimum requirements for blackberry met.
BOOTSTRAPPING blackberry...
WARNING: Your system does not meet requirements to create wp7 projects. See erro
r output below.
'C:\Users\ahmed.marzouk\AppData\Roaming\npm\node_modules\phonegap\node_modules\c
ordova\lib\cordova-wp7\bin\check_reqs' is not recognized as an internal or exter
nal command,
operable program or batch file.
SKIPPING wp7 bootstrap.
WARNING: Your system does not meet requirements to create ios projects. See erro
r output below.
Xcode is (probably) not installed, specifically the command `xcodebuild` is unav
ailable or erroring out. Output of `xcodebuild -version` is: 'xcodebuild' is not
recognized as an internal or external command,
operable program or batch file.
SKIPPING ios bootstrap.
WARNING: Your system does not meet requirements to create wp8 projects. See erro
r output below.
'C:\Users\ahmed.marzouk\AppData\Roaming\npm\node_modules\phonegap\node_modules\c
ordova\lib\cordova-wp7\bin\check_reqs' is not recognized as an internal or exter
nal command,
operable program or batch file.
SKIPPING wp8 bootstrap.
ERROR! Could not create a native blackberry project test fixture. See below for
error output.
Missing one of the following:
JDK: http://java.oracle.com
Apache ant: http://ant.apache.org
WARNING: Your system does not meet requirements to create android projects. See
error output below.
Please install Android target 17 (the Android 4.2 SDK). Make sure you have the l
atest Android tools installed as well. Run `android` from your command-line to i
nstall/update any missing SDKs or tools.
SKIPPING android bootstrap.
C:\Users\ahmed.marzouk\AppData\Roaming\npm\phonegap -> C:\Users\ahmed.marzouk\Ap
pData\Roaming\npm\node_modules\phonegap\bin\phonegap.js
phonegap#0.9.4 C:\Users\ahmed.marzouk\AppData\Roaming\npm\node_modules\phonegap
├── colors#0.6.2
├── semver#1.1.0
├── qrcode-terminal#0.9.5
├── shelljs#0.0.9
├── optimist#0.3.7 (wordwrap#0.0.3)
├── node-static#0.6.9 (mime#1.3.4)
├── phonegap-build#0.8.0 (qrcode-terminal#0.8.0, phonegap-build-api#0.3.3)
├── prompt#0.2.14 (pkginfo#0.3.0, revalidator#0.1.8, read#1.0.6, winston#0.8.3,
utile#0.2.1)
└── cordova#2.7.4 (ncallbacks#1.0.0, open#0.0.3, shelljs#0.1.2, elementtree#0.1.
3, request#2.11.4, xcode#0.5.1, prompt#0.2.7, plist#0.4.0, express#3.0.6, ripple
-emulator#0.9.29, plugman#0.5.6)
I need to know, is the phonegap installing correctly or not? and if not, how can i solve this issue?
Thanks
I found the solution.
First thing if you have any issue in git like 'git path not found' you should follow the instructions here: installing-git-in-path.
To solve the above problem you should:
first run your cmd as admin it will solve half of the problem.
If there are any issue related toAndroid SDK like
WARNING: Your system does not meet requirements to create android projects. See
error output below.
Please install Android target 17 (the Android 4.2 SDK).
in cmd >
android
then check Android 4.2 SDK and install it.
Thanks
Related
why couldn't install Cordova... it says power shell is not recognized. What does it mean? and how do I fix it? I have tried some basic commands like
changing my path
System variables > Path > C:\Users\me\AppData\Local\Android\Sdk\platform-tools
npm install -g cordova-res
npm install -g ionic cordova-res
npm install cordova-res-generator -g
cordova-res-generator
rror: Command failed: powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption
'powershell' is not recognized as an internal or external command,
operable program or batch file.
at makeError (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:174:9)
at Function.module.exports.sync (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\node_modules\execa\index.js:338:15)
at windowsRelease (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\node_modules\windows-release\index.js:39:19)
at osName (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\node_modules\os-name\index.js:39:18)
at new Insight (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\node_modules\insight\lib\index.js:37:13)
at new RelentlessInsight (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:31:1)
at Object.<anonymous> (C:\Users\Node\AppData\Roaming\npm\node_modules\cordova\src\telemetry.js:39:15)
at Module._compile (internal/modules/cjs/loader.js:1063:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:1092:10)
at Module.load (internal/modules/cjs/loader.js:928:32) {
code: 1,
stdout: '',
stderr: "'powershell' is not recognized as an internal or external command,\r\n" +
'operable program or batch file.\r\n',
failed: true,
signal: null,
cmd: 'powershell (Get-CimInstance -ClassName Win32_OperatingSystem).caption',
timedOut: false
}
Welcome!
I'm not a Windows user, but looks like you don't have the powershell cmd on your PATH.
Add this on your system environment:
%SYSTEMROOT%\System32\WindowsPowerShell\v1.0\
I tried to run an application on nodejs in Android using Termux. When I start npm , it said could not locate the bindings file. My device is rooted.
nodejs v10.15.3
npm 6.4.1
/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/bindings/bindings.js:91
throw err
^
Error: Could not locate the bindings file. Tried:
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/build/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/build/Debug/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/build/Release/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/out/Debug/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/Debug/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/out/Release/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/Release/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/build/default/binding.node
→/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/compiled/10.15.3/android/arm64/binding.node
at bindings (/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/bindings/bindings.js:88:9)
at Object.<anonymous> (/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ref/lib/ref.js:5:47)
at Module._compile (internal/modules/cjs/loader.js:701:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:712:10)
at Module.load (internal/modules/cjs/loader.js:600:32)
at tryModuleLoad (internal/modules/cjs/loader.js:539:12)
at Function.Module._load (internal/modules/cjs/loader.js:531:3)
at Module.require (internal/modules/cjs/loader.js:637:17)
at require (internal/modules/cjs/helpers.js:22:18)
at Object.<anonymous> (/data/data/com.termux/files/home/IoT-blockchain-Std/node_modules/ffi/lib/ffi.js:6:11)
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! IoT-blockchain-Std#1.0.0 start: `node build/main.js`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the IoT-blockchain-Std#1.0.0 start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
How can I solve this issue?
I've solved the same issue installing the missing file.
In your case it is biding.node, so you should do: npm install binding
I am trying to follow the instructions for "Getting started with react-native".
I know that using windows for my development platform is experimental but this is what I am doing. I start a "Node.js command prompt" then do ...
> npm install -g react-native-cli
> react-native init AwesomeProject
... but I get this error ...
C:\Users\plankton>react-native init AwesomeProject
This will walk you through creating a new React Native project in C:\Users\plankton\AwesomeProject
Installing react-native package from npm...
> bufferutil#1.2.1 install C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\bufferutil
> node-gyp rebuild
C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\bufferutil>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
bufferutil.cc
win_delay_load_hook.c
Creating library C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\bufferutil\build\Release\bufferutil.lib and object C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\bufferutil\build\Release\bufferutil.exp
Generating code
Finished generating code
bufferutil.vcxproj -> C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\bufferutil\build\Release\\bufferutil.node
> utf-8-validate#1.2.1 install C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\utf-8-validate
> node-gyp rebuild
C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\utf-8-validate>if not defined npm_config_node_gyp (node "C:\Program Files\nodejs\node_modules\npm\bin\node-gyp-bin\\..\..\node_modules\node-gyp\bin\node-gyp.js" rebuild ) else (node rebuild )
Building the projects in this solution one at a time. To enable parallel build, please add the "/m" switch.
validation.cc
win_delay_load_hook.c
Creating library C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\utf-8-validate\build\Release\validation.lib and object C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\utf-8-validate\build\Release\validation.exp
Generating code
Finished generating code
validation.vcxproj -> C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\ws\node_modules\utf-8-validate\build\Release\\validation.node
> spawn-sync#1.0.13 postinstall C:\Users\plankton\AwesomeProject\node_modules\react-native\node_modules\yeoman-generator\node_modules\cross-spawn\node_modules\spawn-sync
> node postinstall
npm WARN optional dep failed, continuing fsevents#1.0.6
npm ERR! Windows_NT 10.0.10586
npm ERR! argv "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "--save" "react-native"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! path C:\Users\plankton\AppData\Roaming\npm-cache\brace-expansion\1.1.2\package\package.json.9d769f6c66df6b0ff357401140ec21e2
npm ERR! code EPERM
npm ERR! errno -4048
npm ERR! syscall rename
npm ERR! Error: EPERM: operation not permitted, rename 'C:\Users\plankton\AppData\Roaming\npm-cache\brace-expansion\1.1.2\package\package.json.9d769f6c66df6b0ff357401140ec21e2' -> 'C:\Users\plankton\AppData\Roaming\npm-cache\brace-expansion\1.1.2\package\package.json'
npm ERR! at Error (native)
npm ERR! { [Error: EPERM: operation not permitted, rename 'C:\Users\plankton\AppData\Roaming\npm-cache\brace-expansion\1.1.2\package\package.json.9d769f6c66df6b0ff357401140ec21e2' -> 'C:\Users\plankton\AppData\Roaming\npm-cache\brace-expansion\1.1.2\package\package.json']
npm ERR! errno: -4048,
npm ERR! code: 'EPERM',
npm ERR! syscall: 'rename',
npm ERR! path: 'C:\\Users\\plankton\\AppData\\Roaming\\npm-cache\\brace-expansion\\1.1.2\\package\\package.json.9d769f6c66df6b0ff357401140ec21e2',
npm ERR! dest: 'C:\\Users\\plankton\\AppData\\Roaming\\npm-cache\\brace-expansion\\1.1.2\\package\\package.json',
npm ERR! parent: 'minimatch' }
npm ERR!
npm ERR! Please try running this command again as root/Administrator.
npm ERR! Please include the following file with any support request:
npm ERR! C:\Users\plankton\AwesomeProject\npm-debug.log
`npm install --save react-native` failed
The error output suggest: Please try running this command again as root/Administrator., but how do I do that on a Windows 10 system?
UPDATE: Thank Louy your answer works. Here's a screen shot of what I ended up doing ...
Right click the Node.js command promtpt and select Run as Administrator.
UPDATE II: On subsequent iterations I got the same error. I what I had to do then was what Louy said to do in the comment:
delete the folder "C:\\Users\\plankton\\AppData\\Roaming\\npm-cache
UPDATE III:
I had run my Node.js command prompt as Administrator and I had deleted the folder "C:\\Users\\plankton\\AppData\\Roaming\\npm-cache and yet I still got the running this command again as root/Administrator error. I had to use Windows Explorer to unset the Read only and hidden properties off the "C:\Users\plankton\AppData` folder.
You need to start up your command line interpreter as an administrator.
Open start menu
Type "cmd"
Right click and choose "Run as Administrator"
Then do the same as you did earlier.
I'm using Ubuntu 14.04. I'm following the steps given in http://chrislarson.me/blog/how-use-cordova-ubuntu-build-android-apps.html
to build my first app for Android on Ubuntu.
But when I run this: cordova platform add android, I get the following message on the terminal:
Error: EACCES, open
'/home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/.npmignore'
If i try running sudo cordova platform add android, I get
Creating android project...
/home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:126
throw e;
^
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must fulfill at least one of these conditions.
at /home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/lib/check_reqs.js:159:19
at _fulfilled (/home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:798:54)
at self.promiseDispatch.done (/home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:827:30)
at Promise.promise.promiseDispatch (/home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:760:13)
at /home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:821:14
at flush (/home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/node_modules/q/q.js:108:17)
at process._tickCallback (node.js:442:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:929:3
Error: /home/a/.cordova/lib/npm_cache/cordova-android/3.6.4/package/bin/create: Command failed with exit code 8
at ChildProcess.whenDone (/usr/local/lib/node_modules/cordova/node_modules/cordova-lib/src/cordova/superspawn.js:135:23)
at ChildProcess.emit (events.js:98:17)
at maybeClose (child_process.js:766:16)
at Process.ChildProcess._handle.onexit (child_process.js:833:5)
try deleting the contents of
.cordova/lib/npm_cache/cordova-android/
and then try again.
cordova / npm cache cordova-android files deleting these will ensure a clean install.
first check your android path by echo $ANDROID_HOME
then if it is showing path then you have set ANDROID_HOME path correctly and
if not then do this
1) sudo gedit ~/.bashrc
2) then paste following path at the last of file save it and close.
export ANDROID_HOME=your_sdk_path/sdk
export PATH=$PATH:$ANDROID_HOME/tools:$ANDROID_HOME/platform-tools
your first error is permission issue and second because ANDROID_HOME path not set correctly
I am on Windows 8 and following through how to install and use Cordova with Ionic Framework on Windows 8.1. I followed through the video here: http://learn.ionicframework.com/videos/windows-android/. I am stuck at 5:58 of the video where the SDK Manager is suppose to come up when I type 'android' in the command line, but it says it's unrecognizable command. I made sure my file directories are exact. What else am I missing? How do I fix this problem?
PATH
C:\Users\Jaime\AppData\Roaming\npm; C:\Program Files\Java\jdk1.8.0_25\bin; C:\Development\AndroidSDK\sdk\platform-tools; C:\Development\AndroidSDK\sdk\tools; C:\Development\ApacheAnt\bin; C:\Program Files\nodejs
Thanks!
Problem with Android command:
C:\Users\Jaime\myapp>ionic platform add android
npm http GET https://registry.npmjs.org/cordova-android/3.6.4
npm http 200 https://registry.npmjs.org/cordova-android/3.6.4
npm http GET https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.
tgz
npm http 200 https://registry.npmjs.org/cordova-android/-/cordova-android-3.6.4.
tgz
Creating android project...
C:\Users\Jaime\.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\node_mod
ules\q\q.js:126
throw e;
^
Error: ANDROID_HOME is not set and "android" command not in your PATH. You must
fulfill at least one of these conditions.
at C:\Users\Jaime\.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\l
ib\check_reqs.js:159:19
at _fulfilled (C:\Users\Jaime\.cordova\lib\npm_cache\cordova-android\3.6.4\p
ackage\bin\node_modules\q\q.js:798:54)
at self.promiseDispatch.done (C:\Users\Jaime\.cordova\lib\npm_cache\cordova-
android\3.6.4\package\bin\node_modules\q\q.js:827:30)
at Promise.promise.promiseDispatch (C:\Users\Jaime\.cordova\lib\npm_cache\co
rdova-android\3.6.4\package\bin\node_modules\q\q.js:760:13)
at C:\Users\Jaime\.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\n
ode_modules\q\q.js:821:14
at flush (C:\Users\Jaime\.cordova\lib\npm_cache\cordova-android\3.6.4\packag
e\bin\node_modules\q\q.js:108:17)
at process._tickCallback (node.js:415:13)
at Function.Module.runMain (module.js:499:11)
at startup (node.js:119:16)
at node.js:902:3
Error: C:\Users\Jaime\.cordova\lib\npm_cache\cordova-android\3.6.4\package\bin\c
reate.bat: Command failed with exit code 8
at ChildProcess.whenDone (C:\Users\Jaime\AppData\Roaming\npm\node_modules\co
rdova\node_modules\cordova-lib\src\cordova\superspawn.js:135:23)
at ChildProcess.EventEmitter.emit (events.js:98:17)
at maybeClose (child_process.js:743:16)
at Process.ChildProcess._handle.onexit (child_process.js:810:5)
Update:
Here's what I have so far:
USER variables:
name: PATH
variable:
C:\Users\Jaime\AppData\Roaming\npm; C:\Program
Files\Java\jdk1.8.0_25\bin;
C:\Development\AndroidSDK\sdk\platform-tools;
C:\Development\AndroidSDK\sdk\tools;
C:\Development\AndroidSDK\sdk\build-tools; C:\Development\ApacheAnt\bin;
C:\Program Files\nodejs;
%PATH%;%ANDROID_HOME%\tools;%ANDROID_HOME%\platform-tools
SYSTEM variables:
name: ANDROID
variable: C:\Development\AndroidSDK\sdk
name: ANT
variable: C:\Development\ApacheAnt
name: JAVA
variable: C:\Program Files\Java\jdk1.8.0_25
Phonegap and cordova installation procedures
what are the need for installiation?
1)node js
download:http://nodejs.org/download/
We have node-v0.10.29-x64.msi (64 bit) installation. After install, open command prompt & type "node -v" , then "npm -v", these 2 commands should work without any error in command prompt.
Open command prompt - (Click windows and R keynd then enter the cmd)
2)phonegap
http://phonegap.com/install/
Install phonegap on cmd: enter npm install -g phonegap on cmd
After installation, files will be placed in C:\Users\Hari\AppData\Roaming\npm folder. You can check the installation by typing the command "phonegap -v" in command prompt.
3)java jdk
http://www.oracle.com/technetwork/java/javase/downloads/index.html?ssSourceSiteId=otnjp
We have jdk-8u5-windows-x64.exe file.
You may need to add path variables in My computer-->Right click-->Properties-->Advanced system settigs-->Environment variables
After install, check "java -version" in command prompt. "where java" will help you to identify the installation path of the java.
4)ant
download:http://ant.apache.org/
We already have apache-ant-1.9.4-bin.zip portable edition of Ant, We need not to install, just need to extract the zip file & place it in some secure place.
You may need to add path variables in My computer-->Right click-->Properties-->Advanced system settigs-->Environment variables
Environment variables name:Ant_Home
Ex: C:\Program Files\apache-ant-1.9.4
5)android sdk
download:http://developer.android.com/sdk/index.html
We have adt-bundle-windows-x86_64-20140624/SDK Manager.exe file.
6)ionic
cmd-->npm install -g ionic
7)cordova
cmd-->npm install -g cordova
PATH SETTING
My computer-->Right click-->Properties-->Advanced system settigs-->Environment variables
Edit the Path and give the like this
C:\Users\prabhu\AppData\Roaming\npm;C:\Program Files\apache-ant-1.9.4\bin;C:\phonegap_project\adt-bundle-windows-x86_64-20131030\sdk\tools;C:\phonegap_project\adt-bundle-windows-x86_64-20131030\sdk\build-tools;C:\Program Files\Java\jdk1.8.0_05\bin;
if Not Run JVM
Set systems variables
Click New
variable Name:_JAVA_OPTIONS
variable value:-Xmx512M