On Node error 0.12.2 and npm 2.7.4 ion setting on windows 7

I downloaded the node installer "node-v0.12.2-x64.msi" for 64-bit Windows 7. All node and npm commands work fine. I have checked both node and npm versions.

But when I try to install ionic with the following command:

npm install -g cordova ionic

      

It gives me the following error:

npm WARN engine cordova-js@3.9.0: wanted: {"node":"~0.10.x"} (current: {"node":"
0.12.2","npm":"2.7.4"})

npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":
"0.12.2","npm":"2.7.4"})

npm WARN engine xmlbuilder@2.2.1: 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 npm@1.3.4, but bund
led package wasn't found in unpacked tree

npm ERR! tar.unpack untar error C:\Users\Biswarup\AppData\Local\Temp\npm-1484-8b
f97a1e\registry.npmjs.org\request\-\request-2.9.203.tgz

npm ERR! cb() never called!

      

Biswarup is my username in all cases.

I check the following links for troubleshooting, but nothing works for me.

https://github.com/npm/npm/wiki/Troubleshooting#error-enoent-stat-cusersuserappdataroamingnpm-on-windows-7

https://github.com/diegonetto/generator-ionic/issues/42

Please, I am completely stuck on this issue. Try uninstalling node js and reinstalling it many times. But nothing happens.

+1


source to share


2 answers


First of all, the packages are warning you that this requires nodejs 0.10.x and may be the reason. Another try you can update npm and try to find a newer version. So, here are the steps to do it:



npm cache clean
npm update -g npm
npm cache clean

      

0


source


Download Node 0.10.38

I'm having a problem with a newer version of node.



I have already elaborated on this fooobar.com/questions/989613 / ...

0


source







All Articles