ionic总是安装失败,烦请高手指点。
本帖最后由 tearar 于 2015-11-23 13:40 编辑最近几天安装Ionic总是失败,用了很多方法,包括增加cnpmjs的代理,都是报类似下面的问题。烦请高手指点,如何才能安装成功!
我用的是node v4.2.1, covdia安装成功是5.4.0版本
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 settin
gs.
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! Windows_NT 6.1.7601
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v4.2.1
npm ERR! npmv2.14.7
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 settin
gs.
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! Windows_NT 6.1.7601
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic"
npm ERR! node v4.2.1
npm ERR! npmv2.14.7
npm ERR! code ECONNRESET
npm ERR! errno ECONNRESET
npm ERR! syscall read
使用cnpmjs.org的话会说找不到inoic,这是为什么呢?
D:\ionics>npm config --global set registry http://registry.cnpmjs.org
D:\ionics>npm install -g cordova inoic
npm ERR! Windows_NT 6.1.7601
npm ERR! argv "D:\\Program Files\\nodejs\\node.exe" "D:\\Program Files\\nodejs\\
node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "cordova" "inoic"
npm ERR! node v4.2.1
npm ERR! npmv2.14.7
npm ERR! code E404
npm ERR! 404 Not Found: inoic
npm ERR! 404
npm ERR! 404 'inoic' is not in the npm registry.
npm ERR! 404 You should bug the author to publish it (or use the name yourself!)
npm ERR! 404
npm ERR! 404 Note that you can also install from a
npm ERR! 404 tarball, folder, http url, or git url.
npm ERR! Please include the following file with any support request:
npm ERR! D:\ionics\npm-debug.log npm install ionic --registry=https://registry.npm.taobao.org -g
试着运行这个看看。 阿刀飞了 发表于 2015-11-23 15:05
npm install ionic --registry=https://registry.npm.taobao.org -g
试着运行这个看看。
这个也不行,问题依旧是“proxy” 本帖最后由 tearar 于 2015-11-23 19:49 编辑
又想了个招,找了一个http和一个https的代理,已安装,就报下面的问题,我把这两个代理配置到internet选项中,用ie都能把fetch失败的tgz文件下载,为什么npm就fetch不上,真奇怪。有没有大牛给指点一二啊
D:\tea\ionics>npm install -g ionic --proxy http://198.169.246.30:80/ --https-pro
xy https://64.62.233.67:80/
npm ERR! fetch failed https://registry.npmjs.org/colors/-/colors-0.6.2.tgz
npm WARN retry will retry, error on last attempt: Error: tunneling socket could
not be established, cause=write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_S
ERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:782:
npm WARN retry
npm ERR! fetch failed https://registry.npmjs.org/unzip/-/unzip-0.1.9.tgz
npm WARN retry will retry, error on last attempt: Error: tunneling socket could
not be established, cause=write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_S
ERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:782:
npm WARN retry
npm ERR! fetch failed https://registry.npmjs.org/vinyl-fs/-/vinyl-fs-0.3.7.tgz
npm WARN retry will retry, error on last attempt: Error: tunneling socket could
not be established, cause=write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_S
ERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:782:
log的最后几行如下:
2097 error fetch failed https://registry.npmjs.org/finalhandler/-/finalhandler-0.2.0.tgz
2098 verbose about to build C:\Users\test\AppData\Roaming\npm\node_modules\ionic
2099 verbose unlock done using C:\Users\test\AppData\Roaming\npm-cache\_locks\ionic-9faaa2c24ec16899.lock for C:\Users\test\AppData\Roaming\npm\node_modules\ionic
2100 verbose stack Error: tunneling socket could not be established, cause=write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:782:
2100 verbose stack
2100 verbose stack at ClientRequest.onError (D:\Program Files\nodejs\node_modules\npm\node_modules\request\node_modules\tunnel-agent\index.js:168:17)
2100 verbose stack at ClientRequest.g (events.js:199:16)
2100 verbose stack at ClientRequest.emit (events.js:107:17)
2100 verbose stack at TLSSocket.socketErrorListener (_http_client.js:271:9)
2100 verbose stack at TLSSocket.emit (events.js:129:20)
2100 verbose stack at onwriteError (_stream_writable.js:317:10)
2100 verbose stack at onwrite (_stream_writable.js:335:5)
2100 verbose stack at WritableState.onwrite (_stream_writable.js:105:5)
2100 verbose stack at fireErrorCallbacks (net.js:456:13)
2100 verbose stack at TLSSocket.Socket._destroy (net.js:495:3)
2101 verbose cwd D:\tea\ionics
2102 error Windows_NT 6.1.7601
2103 error argv "D:\\Program Files\\nodejs\\\\node.exe" "D:\\Program Files\\nodejs\\node_modules\\npm\\bin\\npm-cli.js" "install" "-g" "ionic" "--proxy" "http://198.169.246.30:80/" "--https-proxy" "https://64.62.233.67:80/"
2104 error node v0.12.7
2105 error npmv2.11.3
2106 error code ECONNRESET
2107 error network tunneling socket could not be established, cause=write EPROTO 0:error:140770FC:SSL routines:SSL23_GET_SERVER_HELLO:unknown protocol:openssl\ssl\s23_clnt.c:782:
2107 error network
2107 error network This is most likely not a problem with npm itself
2107 error network and is related to network connectivity.
2107 error network In most cases you are behind a proxy or have bad network settings.
2107 error network
2107 error network If you are behind a proxy, please make sure that the
2107 error network 'proxy' config is set properly.See: 'npm help config'
2108 verbose exit [ 1, true ]
2109 verbose unbuild node_modules\ionic
2110 info preuninstall ionic@1.7.10
2111 info uninstall ionic@1.7.10
2112 verbose unbuild rmStuff ionic@1.7.10 from C:\Users\test\AppData\Roaming\npm\node_modules
2113 silly gentlyRm C:\Users\test\AppData\Roaming\npm\ionic.cmd is being gently removed
2114 silly gentlyRm verifying C:\Users\test\AppData\Roaming\npm is an npm working directory
2115 silly gentlyRm containing path C:\Users\test\AppData\Roaming\npm is under npm's control, in C:\Users\test\AppData\Roaming\npm
2116 silly gentlyRm deletion target C:\Users\test\AppData\Roaming\npm\ionic.cmd is under C:\Users\test\AppData\Roaming\npm
2117 verbose gentlyRm vacuuming from C:\Users\test\AppData\Roaming\npm\ionic.cmd up to C:\Users\test\AppData\Roaming\npm
2118 silly gentlyRm C:\Users\test\AppData\Roaming\npm\ionic is being gently removed
2119 silly gentlyRm verifying C:\Users\test\AppData\Roaming\npm is an npm working directory
2120 silly gentlyRm containing path C:\Users\test\AppData\Roaming\npm is under npm's control, in C:\Users\test\AppData\Roaming\npm
2121 silly gentlyRm deletion target C:\Users\test\AppData\Roaming\npm\ionic is under C:\Users\test\AppData\Roaming\npm
2122 verbose gentlyRm vacuuming from C:\Users\test\AppData\Roaming\npm\ionic up to C:\Users\test\AppData\Roaming\npm
2123 info postuninstall ionic@1.7.10
2124 silly gentlyRm C:\Users\test\AppData\Roaming\npm\node_modules\ionic is being purged from base C:\Users\test\AppData\Roaming\npm
2125 verbose gentlyRm don't care about contents; nuking C:\Users\test\AppData\Roaming\npm\node_modules\ionic
2126 silly vacuum-fs purging C:\Users\test\AppData\Roaming\npm\node_modules\ionic
2127 silly vacuum-fs quitting because other entries in C:\Users\test\AppData\Roaming\npm\node_modules
翻墙吧 zhuxianchen 发表于 2015-11-24 16:38
翻墙吧
只能这样了
站在高墙下,一声叹息!
页:
[1]