与Node 0.12.2和npm 2.7.4离子安装错误在Windows 7 [英] With Node 0.12.2 and npm 2.7.4 ionic installation error on windows 7

查看:953
本文介绍了与Node 0.12.2和npm 2.7.4离子安装错误在Windows 7的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我下载了64位Windows 7操作系统的节点安装文件node-v0.12.2-x64.msi。所有node和npm命令都正常工作。我检查了节点和npm版本。

I am downloaded the node installation file "node-v0.12.2-x64.msi" for 64 bit windows 7 OS. All node and npm commands are working fine. I checked both the node and npm versions.

但是当我尝试通过以下命令安装ionic:

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

npm install -g cordova ionic

错误:

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是我在上述所有情况下的用户名。

Biswarup is my username in above 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

请指导我,我完全停留在这一点上。尝试删除节点js并重新安装它多次。

Please guide me, I am totally stuck at that point. Try to removing node js and reinstalling it many times. But nothing goes right.

推荐答案

请下载Node 0.10.38

Please download Node 0.10.38

我在新版本的节点上也有问题。

I was too having problem with newer version of node.

我已经详细地回答了这个问题http://stackoverflow.com/a/31124491/1276616

I have already aswered this in detail http://stackoverflow.com/a/31124491/1276616

这篇关于与Node 0.12.2和npm 2.7.4离子安装错误在Windows 7的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆