2016-04-26 6 views
0

ich versuchte, cordova/phonegap auf meinem Rechner läuft auf Ubuntu 15.0 Anschluss an die Führung http://madebyknight.com/installing-phonegapcordova-windows-linux/Kann nicht Cordova/Phonegap auf System installieren Ubuntu 15.04

ich auch die folgenden zwei Führungen versucht haben, zu installieren, aber begegnet das gleiche Problem

http://dasunhegoda.com/installrun-phonegap-ubuntu/797/

http://www.levibotelho.com/development/the-complete-guide-to-running-phonegap-on-ubuntu

während diese läuft Befehle alles, was ich bin immer ist das unten Ergebnis

Befehl:

npm install –g [email protected] 
npm install –g [email protected] 

Ergebnis:

npm WARN package.json [email protected] No description 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No README data 
npm ERR! 404 Not Found 
npm ERR! 404 
npm ERR! 404 '–g' is not in the npm registry. 
npm ERR! 404 You should bug the author to publish it 
npm ERR! 404 
npm ERR! 404 Note that you can also install from a 
npm ERR! 404 tarball, folder, or http url, or git url. 

npm ERR! System Linux 3.19.0-15-generic 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "–g" "[email protected]" 
npm ERR! cwd /home/user 
npm ERR! node -v v0.10.25 
npm ERR! npm -v 1.4.21 
npm ERR! code E404 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/user/npm-debug.log 
npm ERR! not ok code 0 


npm WARN package.json [email protected] No description 
npm WARN package.json [email protected] No repository field. 
npm WARN package.json [email protected] No README data 
npm ERR! 404 Not Found 
npm ERR! 404 
npm ERR! 404 '–g' is not in the npm registry. 
npm ERR! 404 You should bug the author to publish it 
npm ERR! 404 
npm ERR! 404 Note that you can also install from a 
npm ERR! 404 tarball, folder, or http url, or git url. 

npm ERR! System Linux 3.19.0-15-generic 
npm ERR! command "/usr/bin/nodejs" "/usr/bin/npm" "install" "–g" "[email protected]" 
npm ERR! cwd /home/user 
npm ERR! node -v v0.10.25 
npm ERR! npm -v 1.4.21 
npm ERR! code E404 
npm ERR! 
npm ERR! Additional logging details can be found in: 
npm ERR!  /home/user/npm-debug.log 
npm ERR! not ok code 0 

Jede Hilfe sehr geschätzt wird.

+0

löst Ihr Problem? – HardikDG

+0

Nein Sorry für die späte Antwort @Pyro –

Antwort

0

Ihre nodejs-Installation funktioniert nicht richtig. Versuchen Sie, Nodejs neu zu installieren, und führen Sie dann diesen Befehl aus. Wenn Sie den Fehler suchen, ist es nicht möglich, die -g globalen Schalter anzeigt, Probleme mit Ihrem NodeJS zu erkennen und npm

+0

Ich habe nodejs mehrmals neu installiert, aber mit dem gleichen Problem wieder .... Danke für Ihre Antwort –

0

Sehen aus wie Sie die falschen Bindestrich-Zeichen verwenden, wie in diesem erwähnt: https://github.com/npm/npm/issues/1859, sollten Sie manuell den Typen Befehl im Terminal (-g spezifisch) oder versuchen sudo npm install -g [email protected] es

arbeiten können, wenn Sie immer noch diese uRL können Sie haben den gleichen Fehler helfen: http://www.himpfen.com/install-apache-cordova-ubuntu/

Prüfen Sie zuerst, wenn NPM richtig installiert ist, indem nodejs -v prüft und wenn es funktioniert versuchen, versuchen Sie die nächsten Schritte für die Installation von Cordova

Verwandte Themen