Por que o phonegap não encontra o Android quando eu configuro meu caminho?

1

Estou tentando configurar o phonegap para criar para o Android.

Quando instalei o phonegape, ele me disse:

npm WARN engine [email protected]: wanted: {"node":"~0.6.7"} (current: {"node":"0.12.5","npm":"2.11.2"})
-
> [email protected] install /home/n07070/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 wp8 projects. See error output below.
/bin/sh: 1: /home/n07070/node_modules/phonegap/node_modules/cordova/lib/cordova-wp7/bin/check_reqs: not found

SKIPPING wp8 bootstrap.
WARNING: Your system does not meet requirements to create wp7 projects. See error output below.
/bin/sh: 1: /home/n07070/node_modules/phonegap/node_modules/cordova/lib/cordova-wp7/bin/check_reqs: not found

SKIPPING wp7 bootstrap.
ERROR! Could not create a native blackberry project test fixture. See below for error output.
/home/n07070/node_modules/phonegap/node_modules/cordova/lib/cordova-blackberry/bin/create: 26: [: /home/n07070/node_modules/phonegap/node_modules/cordova/spec/fixtures/projects/native/blackberry_fixture: unexpected operator
/home/n07070/node_modules/phonegap/node_modules/cordova/lib/cordova-blackberry/bin/create: 52: /home/n07070/node_modules/phonegap/node_modules/cordova/lib/cordova-blackberry/bin/create: function: not found

WARNING: Your system does not meet requirements to create android projects. See error output below.
The command 'android' failed. Make sure you have the latest Android SDK installed, and the 'android' command (inside the tools/ folder) added to your path. Output: /bin/sh: 1: android: not found

SKIPPING android bootstrap.
WARNING: Your system does not meet requirements to create ios projects. See error output below.
Xcode is (probably) not installed, specifically the command 'xcodebuild' is unavailable or erroring out. Output of 'xcodebuild -version' is: /bin/sh: 1: xcodebuild: not found

SKIPPING ios bootstrap.
[email protected] node_modules/phonegap
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
├── [email protected] ([email protected])
├── [email protected] ([email protected], [email protected])
├── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected])

Mas! Meu $ PATH é:

$ $PATH
sh: 1: /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/media/HDD/Code/android-sdk-linux/plateform-tools:/media/HDD/Code/android-sdk-linux/tools: not found

Mas quando olho:

$ cd /media/HDD/Code/android-sdk-linux/
$ ls
add-ons  build-tools  docs  extras  platforms  platform-tools  samples  SDK Readme.txt  sources  system-images  temp  tools

Eu vejo que há um erro no meu $ PATH, mas como faço para corrigir isso? Eles são uma maneira simples de remover o phonegap e o sdk do Android, corrigir meu caminho de volta ao seu estado original e começar tudo de novo?

    
por N07070 25.06.2015 / 22:55

0 respostas