jspm install 报错

来源:2-2 环境搭建下

慕圣4478250

2022-05-27

jspm install 报错

$ jspm install
(node:11236) [DEP0128] DeprecationWarning: Invalid 'main' field in 'D:\work\safety\node_modules\jspm-npm\package.json' of 'npm.js'. Please either fix that or report it to the module author
(Use `node --trace-deprecation ...` to show where the warning was created)
     Looking up npm:axios
     Looking up npm:form-serialize
     Updating registry cache...
     Looking up npm:follow-redirects
ok   Installed form-serialize as npm:form-serialize@^0.7.1 (0.7.1)
     Looking up github:jspm/nodelibs-https
     Looking up github:jspm/nodelibs-url
     Downloading github:jspm/nodelibs-https@0.1.0
     Looking up npm:https-browserify
     Downloading npm:https-browserify@0.0.0
     Looking up npm:debug
ok   Installed npm:follow-redirects@1.0.0 (1.0.0)
     Looking up npm:ms
ok   Installed npm:debug@^2.2.0 (2.6.3)
     Looking up github:jspm/nodelibs-stream
     Looking up github:jspm/nodelibs-assert
ok   Installed npm:ms@0.7.2 (0.7.2)
ok   Installed npm:https-browserify@0.0.0 (0.0.0)
     Downloading github:jspm/nodelibs-stream@0.1.0
     Looking up npm:stream-browserify
     Looking up npm:inherits
     Looking up npm:readable-stream
ok   Installed npm:stream-browserify@^1.0.0 (1.0.0)
ok   Installed npm:inherits@~2.0.1 (2.0.1)
     Looking up npm:core-util-is
     Looking up npm:isarray
     Looking up npm:string_decoder
ok   Installed npm:readable-stream@^1.0.27-1 (1.1.14)
ok   Installed npm:core-util-is@~1.0.0 (1.0.2)
ok   Installed npm:isarray@0.0.1 (0.0.1)
ok   Installed npm:string_decoder@~0.10.0 (0.10.31)

warn Error on locate for github:jspm/nodelibs-buffer, retrying (1).
     Error: read ECONNRESET
         at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)

warn Error on locate for github:systemjs/plugin-json, retrying (1).
     Error: read ECONNRESET
         at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)

warn Error on locate for github:jspm/nodelibs-process, retrying (1).
     Error: read ECONNRESET
         at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)

warn Error on locate for github:jspm/nodelibs-zlib, retrying (1).
     Error: read ECONNRESET
         at TLSWrap.onStreamRead (node:internal/stream_base_commons:217:20)
     Looking up github:jspm/nodelibs-process

warn Error on lookup for github:jspm/nodelibs-url, retrying (1).
     Error: fatal: unable to access 'jspm/nodelibs-url.git/': Failed to connect to github.com port 443 after 21026 ms: Timed out


warn Error on download for github:jspm/nodelibs-https
     Error: connect ETIMEDOUT 20.205.243.166:443
         at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1187:16)

err  Error downloading github:jspm/nodelibs-https.

warn Installation changes not saved.

图片描述

对前端不熟悉. 尝试解决了一下无果. 尝试挂VPN也不行 请教老师怎么解决这个问题呢

写回答

1回答

TooooBug

2022-06-10

你这个错误很明显是网络访问github不通畅。可能梯子姿势没太对,可以考虑打开全局代理进行安装试试看,或者设置一下http_proxy和https_proxy的值为本地梯子的代理端口。

0
4
zzy0113
回复
慕圣4478250
我也遇到了这个问题,可以问一下你是怎么解决的吗
2022-09-26
共4条回复

腾讯大牛亲授 Web前后端漏洞分析与防御技巧

提高每一行代码安全系数,突破前后端开发Web安全弱项

1186 学习 · 112 问题

查看课程