|
5#
楼主 |
发表于 2015-11-23 19:45:21
|
只看该作者
本帖最后由 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 npm v2.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
|
|