sprcen 发表于 2015-9-24 01:00:09

求教 ionic 安装失败

请问这是网络的问题吗?但是我把下载文件 地址复制到浏览器上是可以连上下载的。
安装这个有没有离线包啊?直接把文件 拷到指定目录下的方式

C:\Users\sprce>npm install -g ionic

npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"4.1.1","npm":"2.14.4"})
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"4.1.1","npm":"2.14.4"})
npm ERR! fetch failed https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.8.tgz
npm WARN retry will retry, error on last attempt: Error: read ECONNRESET
npm ERR! fetch failed https://registry.npmjs.org/xtend/-/xtend-4.0.0.tgz

................................................
npm ERR! fetch failed https://registry.npmjs.org/hawk/-/hawk-1.1.1.tgz
npm WARN retry will retry, error on last attempt: Error: socket hang up
npm ERR! fetch failed https://registry.npmjs.org/block-stream/-/block-stream-0.0.8.tgz
npm ERR! fetch failed https://registry.npmjs.org/glob/-/glob-5.0.14.tgz
npm ERR! fetch failed https://registry.npmjs.org/graceful-fs/-/graceful-fs-3.0.8.tgz
npm ERR! fetch failed https://registry.npmjs.org/validate-npm-package-license/-/validate-npm-package-license-2.0.0.tgz
npm ERR! fetch failed https://registry.npmjs.org/promzard/-/promzard-0.3.0.tgz
npm WARN installMany normalize-package-data was bundled with npm@1.3.4, but bundled package wasn't found in unpacked tree
npm ERR! fetch failed https://registry.npmjs.org/config-chain/-/config-chain-1.1.9.tgz
npm ERR! fetch failed https://registry.npmjs.org/tunnel-agent/-/tunnel-agent-0.4.1.tgz
npm WARN engine xmlbuilder@2.2.1: wanted: {"node":"0.8.x || 0.10.x"} (current: {"node":"4.1.1","npm":"2.14.4"})
npm ERR! Windows_NT 10.0.10162
npm ERR! argv "E:\\Program\\nodejs\\node.exe" "E:\\Program\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v4.1.1
npm ERR! npmv2.14.4
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read

npm ERR! network read ECONNRESET
npm ERR! network This is most likely not a problem with npm itself
npm ERR! network and is related to network connectivity.
npm ERR! network In most cases you are behind a proxy or have bad network settings.
npm ERR! network
npm ERR! network If you are behind a proxy, please make sure that the
npm ERR! network 'proxy' config is set properly.See: 'npm help config'

npm ERR! Please include the following file with any support request:
npm ERR!   C:\Users\sprce\npm-debug.log

你懂的 发表于 2015-9-24 09:40:33

npm WARN engine cordova-js@4.0.0: wanted: {"node":"~0.10.x"} (current: {"node":"4.1.1","npm":"2.14.4"})
npm WARN engine npm@1.3.4: wanted: {"node":">=0.6","npm":"1"} (current: {"node":"4.1.1","npm":"2.14.4"})


node版本是不是有问题,还有cordova安装成功了吗

sprcen 发表于 2015-9-24 11:51:11

测试一把 发表于 2015-9-24 09:40
npm WARN engine : wanted: {"node":"~0.10.x"} (current: {"node":"4.1.1","npm":"2.14.4"})
npm WARN eng ...

不是版本问题,我在另外一台电脑上也有这个提示,但是装成功了

你懂的 发表于 2015-9-24 12:21:58

sprcen 发表于 2015-9-24 11:51
不是版本问题,我在另外一台电脑上也有这个提示,但是装成功了

那就不要管了继续

1454079780@qq.c 发表于 2015-11-17 09:56:18

请问楼主解决了么?

sprcen 发表于 2016-2-29 09:40:03

已经解决了,是网络的问题,翻墙
页: [1]
查看完整版本: 求教 ionic 安装失败