Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

During Installation Cordova (PhoneGap) I am getting warning like "npm WARN engine Cordova-js@3. 8.0: wanted:..."

I want to develop PhoneGap application, So I am trying to install cordova on the window using the procedure mention in this link.

1. Node.js
2. git client
3. npm install npm -g
I use above step-3,(Please see) to get rid from this warning, did not succeed
4 npm install -g cordova

But I am getting the follwing warning.

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], properties-parser@0.
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], tar@
1.0.2, [email protected], [email protected], [email protected])
like image 602
geeks Avatar asked Mar 12 '15 11:03

geeks


1 Answers

don't worry about the warning,

nodejs 0.12 were just release last mounth, Cordova team havn't yet update dependencies.

Another thing the most up to date Cordova build is 4.1.2, try :

npm install -g cordova@4

to force npm installing the newer version. Cordova 4 works with both 0.10 and 0.12 nodejs version but will warn you as the 3.8 version. Things should return at normal soon after teams updates all the dependencies.

If you really want to care about that warning you could downgrade your nodejs installation to 0.10 and everything will return as usual.

Hope that help.

like image 160
sarlam Avatar answered Oct 29 '22 09:10

sarlam