2013-07-23 33 views
6

Ich versuche PhoneGap herunterzuladen und auszuführen. Ich habe auf 3 Maschinen (2 Mac, 1 Windows) versucht, und ich kann nicht helfen, aber fühle mich, als ob ich etwas falsch mache.PhoneGap - Kann über npm nicht installiert werden, phonegap existiert nicht

Ich habe nodeJS (v0.10.13) und NPM (1.3.2) auf die neuesten Versionen mit homebrew installiert.

PhoneGap zu installieren ich folgend über Kommandozeile tun: sudo npm install -g phonegap

NPM geht es eine Tonne Pakete herunterladen und installieren, alle ohne Warnung oder einen Fehler fröhliche Art und Weise ist.

Nach der Installation ich folgendes bekommen, was ich davon ausgehen, richtig ist:

npm http 200 https://registry.npmjs.org/asn1/-/asn1-0.1.11.tgz 
/usr/local/share/npm/bin/phonegap -> /usr/local/share/npm/lib/node_modules/phonegap/bin/phonegap.js 
[email protected] /usr/local/share/npm/lib/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], shel[email protected], [email protected]) 
├── [email protected] ([email protected], [email protected], [email protected], [email protected], ut[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]) 
MikeBook-Pro:apps Mike$ 

ich dann Terminal neu zu starten (es vollständig beenden, cmd + q), und führen phonegap, werden begrüßt mit:

MikeBook-Pro:~ Mike$ phonegap 
-bash: phonegap: command not found 

Ich bin bei meinem Ende hier. Ich habe andere Sachen ohne Probleme durch NPM installiert. Meine /etc/paths sieht wie folgt aus:

/usr/bin 
/bin 
/usr/sbin 
/sbin 
/usr/local/bin 

Ich habe die obigen Schritte befolgt, indem cordova statt phonegap, aber leider; das gleiche Problem.

Jede Hilfe wird sehr geschätzt, ich möchte nur weinen.

Edit: Ich versuche, das zur Zeit auf OSX 10.8.2 (Mountain Lion)

Antwort

5

ich einige war wie ein paar Pfade von meiner /etc/paths-Datei fehlt. Unten ist die neue Datei:

/usr/bin 
/bin 
/usr/sbin 
/sbin 
/usr/local/bin 

/usr/local/share 
/usr/local/share/npm 
/usr/local/share/npm/lib/node_modules/ 
/usr/local/share/npm/bin 
.npm 
Verwandte Themen