Gaurav Sarma
Gaurav Sarma

Reputation: 2297

Installation problems with cordova

I have installed the latest version of node.js from the official nodejs.org website but when i run the install command in my cmd of windows npm install -g cordova

It installs with the following warnings.

npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN installMany normalize-package-data was bundled with [email protected], but bundled package wasn't found in unpacked tree
C:\Users\Gaurav\AppData\Roaming\npm\cordova -> C:\Users\Gaurav\AppData\Roaming\npm\node_modules\cordova\bin\cordova
[email protected] C:\Users\Gaurav\AppData\Roaming\npm\node_modules\cordova
├── [email protected]
├── [email protected]
├── [email protected] ([email protected])
└── [email protected] ([email protected], [email protected], [email protected], [email protected], [email protected], [email protected], semve
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], elemen
[email protected], [email protected], [email protected], [email protected], [email protected], [email protected], [email protected], cordova-js
@3.9.0, [email protected])

Upvotes: 0

Views: 1341

Answers (2)

Niko
Niko

Reputation: 3422

These are just warnings saying that the required minimal versions of node.js is different from your version of nodejs (v0.12.2).

This shouldn't be a problem for you

Upvotes: 0

Ed Knowles
Ed Knowles

Reputation: 1925

You're using a version of node higher than what is wanted.

cordova requires 0.10.0 and you have 0.12.2.

I suggest you use nvm to easily installing different versions.

First install nvm using this command.

curl https://raw.githubusercontent.com/creationix/nvm/v0.25.0/install.sh | bash

Then you can a specific version with nvm install 0.10.


Here are your errors formatted.

npm WARN engine [email protected]: wanted: {"node":"~0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN engine [email protected]: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"0.12.2","npm":"2.7.4"})
npm WARN engine [email protected]: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"0.12.2","npm":"2.7.4"}) 

Upvotes: 1

Related Questions