安装离子 npm ERR!tar.unpack 错误 [英] installing ionic npm ERR! tar.unpack error

查看:32
本文介绍了安装离子 npm ERR!tar.unpack 错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在安装 ionic npm install -g ionic 时出现错误.

while installing ionic npm install -g ionic getting error.

尝试过:-

  1. npm cache clean 2. 由管理员运行 cli 3. 重新启动系统但错误仍然存​​在.

库存不足.

推荐答案

我在 Windows 8(64 位)上遇到了同样的问题

I was having same problem on Windows 8 (64 bit)

解决方案:

在安装 ionic http://ionicframework.com/docs/guide/installation 之前不要忘记安装其他依赖项.html

1) 从控制面板卸载 Node

1) Uninstall Node from Control Panel

2) 重启电脑

3) 从 http://nodejs.org/dist/v0.10.38/下载(MSI 安装程序)旧版本的 Node 或 64 位 http://nodejs.org/dist/v0.10.38/x64/

3) Download (MSI Installer) older version of Node from http://nodejs.org/dist/v0.10.38/ or 64bit http://nodejs.org/dist/v0.10.38/x64/

4) 安装 Node 版本 0.10.38

4) Install Node version 0.10.38

5) npm install -g cordova

5) npm install -g cordova

6) npm install -g ionic

6) npm install -g ionic

完成!

这篇关于安装离子 npm ERR!tar.unpack 错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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