首页 新闻 搜索 专区 学院

求助:cnpm 安装npm包,报错

0
悬赏园豆:5 [待解决问题]

所有的安装都会报错,貌似是http 协议的问题,请问怎么解决?

复制代码
F:\HbuilderFile\STP\STP-ui-trunk\gulp>cnpm install --save-dev gulp-replace
| [0/1] Installing gulp-replace@*[npminstall:get] retry GET http://registry.npm.taobao.org/gulp-replace/download/gulp-replace-0.6.1.tgz after 100ms, retry left 4, error: ResponseError: read ECONNRESET (req "error"), GET https://cdn.npm.taobao.org/gulp-replace/-/gulp-replace-0.6.1.tgz -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":1,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"cdn.npm.taobao.org:443:::::::true:":1},"requests":{}})
headers: {}
| [0/1] Installing gulp-replace@*[npminstall:get] retry GET http://registry.npm.taobao.org/gulp-replace/download/gulp-replace-0.6.1.tgz after 200ms, retry left 3, error: ResponseError: read ECONNRESET (req "error"), GET https://cdn.npm.taobao.org/gulp-replace/-/gulp-replace-0.6.1.tgz -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":2,"createSocketErrorCount":0,"closeSocketCount":1,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"cdn.npm.taobao.org:443:::::::true:":1},"requests":{}})
headers: {}
- [0/1] Installing gulp-replace@*[npminstall:get] retry GET http://registry.npm.taobao.org/gulp-replace/download/gulp-replace-0.6.1.tgz after 300ms, retry left 2, error: ResponseError: read ECONNRESET (req "error"), GET https://cdn.npm.taobao.org/gulp-replace/-/gulp-replace-0.6.1.tgz -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":3,"createSocketErrorCount":0,"closeSocketCount":2,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"cdn.npm.taobao.org:443:::::::true:":1},"requests":{}})
headers: {}
/ [0/1] Installing gulp-replace@*[npminstall:get] retry GET http://registry.npm.taobao.org/gulp-replace/download/gulp-replace-0.6.1.tgz after 400ms, retry left 1, error: ResponseError: read ECONNRESET (req "error"), GET https://cdn.npm.taobao.org/gulp-replace/-/gulp-replace-0.6.1.tgz -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":4,"createSocketErrorCount":0,"closeSocketCount":3,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"cdn.npm.taobao.org:443:::::::true:":1},"requests":{}})
headers: {}
× Install fail! ResponseError: read ECONNRESET (req "error"), GET https://cdn.npm.taobao.org/gulp-replace/-/gulp-replace-0.6.1.tgz -1 (connected: true, keepalive socket: false, agent status: {"createSocketCount":5,"createSocketErrorCount":0,"closeSocketCount":4,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":0,"freeSockets":{},"sockets":{"cdn.npm.taobao.org:443:::::::true:":1},"requests":{}})
headers: {}
Error: read ECONNRESET
    at exports._errnoException (util.js:1020:11)
    at TLSWrap.onread (net.js:568:26)
npminstall version: 3.2.1
npminstall args: C:\Program Files\nodejs\node.exe C:\Users\gaopengfei\AppData\Roaming\npm\node_modules\cnpm\node_modules\npminstall\bin\install.js --china --userconfig=C:\Users\gaopengfei\.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=http://registry.npm.taobao.org --save-dev gulp-replace
复制代码
若水若鱼的主页 若水若鱼 | 菜鸟二级 | 园豆:206
提问于:2017-11-21 16:12
< >
分享
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册