2015-03-12 4 views
9

Ich möchte PhoneGap-Anwendung zu entwickeln, also versuche ich Cordova auf dem -Fenster zu installieren unter Verwendung des Verfahrens erwähnt in this link.Während der Installation Cordova (PhoneGap) bekomme ich Warnung wie "npm WARN Motor Cordova-js @ 3. 8.0: wollte: ..."

1. Node.js
2. git Client
3. npm installieren npm -g
I obigen Schritt-3 verwenden, (Please see) von dieser Warnung loszuwerden, tat nicht
gelingen npm installieren -g cordova

Aber ich follwing Warnung bin immer.

C:\>npm install -g cordova 
npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":" 
0.12.0","npm":"2.5.1"}) 
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node": 
"0.12.0","npm":"2.5.1"}) 
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: { 
"node":"0.12.0","npm":"2.5.1"}) 
C:\Users\Neelabh\AppData\Roaming\npm\cordova -> C:\Users\Neelabh\AppData\Roaming 
\npm\node_modules\cordova\bin\cordova 
[email protected] C:\Users\Neelabh\AppData\Roaming\npm\node_modules\cordova 
├── [email protected] 
├── [email protected] 
├── [email protected] ([email protected]) 
└── [email protected] ([email protected], [email protected], [email protected] 
2.3, [email protected], [email protected], [email protected], [email protected], [email protected] 
, [email protected], [email protected], [email protected], [email protected], [email protected], [email protected] 
6, [email protected], [email protected], [email protected], [email protected], [email protected] 
1.0.2, [email protected], [email protected], [email protected]) 

Antwort

11

keine Sorge über die Warnung,

NodeJS 0,12 wurden Release erst im vergangenen mounth, Team Cordova havn't noch Abhängigkeiten aktualisieren.

Eine andere Sache, die meisten up to date Cordova Build 4.1.2, versuchen:

npm install -g [email protected] 

npm zu zwingen, die neuere Version installieren. Cordova 4 arbeitet mit Version 0.10 und 0.12 nodejs, warnt Sie aber als Version 3.8. Sobald die Teams alle Abhängigkeiten aktualisiert haben, sollten die Dinge wieder normal sein.

Wenn Sie sich wirklich um diese Warnung kümmern möchten, können Sie Ihre nodejs-Installation auf 0.10 herunterstufen und alles wird wie gewohnt zurückkehren.

Hoffe, dass Hilfe.

+0

Ich installiere bereits cordoav, also, wenn ich dies ausführen wird es jedes Problem erstellen? – geeks

+0

keine, Cordova ist eine wirklich stabile Software. Und der Wechsel zwischen 3.8 und 4 ist nicht auf Grundlagen, also auch mit einem 3.8 Cordova Projekt kann man cordova 4 verwenden;). genieße es – sarlam

+0

Wenn du eine Frage sinnest dann bitte upvote, danke – geeks

0

Die Installation von unter 0.12 Versionen von Node.js löst dieses Problem.

0

Ich ging nur zur Website NODEjs und es nach dem Download aktualisiert.