开发者社区> 问答> 正文

vue-cli3 通过cnpm install安装依赖时,总会出现有些包无法下载

之前也是同样的方式,是安装的成功的,今天安装的时候一直是失败的 UnzipError: invalid distance too far back, GET https://r.npm.taobao.org/is-typedarray 200 (connected: true, keepalive socket: true, agent status: {"createSocketCount":11,"createSocketErrorCount":0,"closeSocketCount":0,"errorSocketCount":0,"timeoutSocketCount":0,"requestCount":369,"freeSockets":{"r.npm.taobao.org:443::::::::::::::::::":1,"r.npm.taobao.org:443::::::::true::::::::::":3},"sockets":{"r.npm.taobao.org:443::::::::true::::::::::":7},"requests":{}}, socketHandledRequests: 38, socketHandledResponses: 38) headers: {"server":"Tengine","content-type":"application/json; charset=utf-8","content-length":"374","connection":"keep-alive","date":"Thu, 26 Nov 2020 06:43:18 GMT","x-current-requests":"1","vary":"accept, accept-encoding","etag":"W/"2dd278432a90c4c144b2a2e90bffd52d"","cache-control":"max-age=0, s-maxage=120, must-revalidate","x-readtime":"39","via":"cn462.l1, kunlun10.cn462, l2cn1801.l2, cache23.l2cn1801, izbp11dsagbzylz6yon5vvz, cache23.l2cn1801[75,304-0,M], cache15.l2cn1801[75,0], kunlun10.cn462[0,200-0,H], kunlun7.cn462[1,0]","x-hit-cache":"list-is-typedarray-v1","x-swift-error":"forward peer connect close","content-encoding":"gzip","ali-swift-global-savetime":"1599054325","age":"3","x-cache":"HIT TCP_MEM_HIT dirn:0:85095476","x-swift-savetime":"Thu, 26 Nov 2020 06:43:18 GMT","x-swift-cachetime":"120","timing-allow-origin":"*","eagleid":"b739529b16063730014994739e"} at Zlib.zlibOnError [as onerror] (zlib.js:180:17) npminstall version: 3.28.0 npminstall args: C:\Program Files\nodejs\node.exe D:\App\nodejs\node_global\node_modules\cnpm\node_modules\npminstall\bin\install.js --fix-bug-versions --china --userconfig=C:\Users\peam.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://r.npm.taobao.org

展开
收起
游客v5be4skkos754 2020-11-30 11:33:45 1733 0
1 条回答
写回答
取消 提交回答
  • 下一站是幸福

    $ cnpm install

    × Install fail! Error: EISDIR: illegal operation on a directory, symlink 'D:\vue-demo\node_modules._connect-history-api-fallback@1.3.0@connect-history-api-fallback' -> 'D:\vue-demo\node_modules\connect-history-api-fallback'

    Error: EISDIR: illegal operation on a directory, symlink 'D:\vue-demo\node_modules._connect-history-api-fallback@1.3.0@connect-history-api-fallback' -> 'D:\vue-demo\node_modules\connect-history-api-fallback'

    at Error (native)

    npminstall version: 2.29.1

    npminstall args: C:\Program Files\nodejs\node.exe C:\Program Files\nodejs\node_modules\cnpm\node_modules\npminstall\bin\install.js --china --userconfig=C:\Users\Administrator.cnpmrc --disturl=https://npm.taobao.org/mirrors/node --registry=https://registry.npm.taobao.org 协议,转载请附上原文出处链接及本声明。 原文链接:https://blog.csdn.net/weixin_39683021/article/details/111751392

    2021-04-02 22:02:45
    赞同 展开评论 打赏
问答地址:
问答排行榜
最热
最新

相关电子书

更多
基于webpack和npm的前端组件化实践 立即下载
低代码开发师(初级)实战教程 立即下载
阿里巴巴DevOps 最佳实践手册 立即下载