请稍等 ...
×

采纳答案成功!

向帮助你的同学说点啥吧!感谢那些助人为乐的人

jspm install 报错

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回答

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

0 回复 有任何疑惑可以回复我~
  • 提问者 慕圣4478250 #1
    非常感谢!
    回复 有任何疑惑可以回复我~ 2022-06-10 17:10:39
  • 哈佬 #2
    老师,可以把jspm安装的所有包打包下放在git库里吗?各种站点都试过了,依然会安装报错,登录的时候还是报“System is not defined”的错误,学习很难推进
    回复 有任何疑惑可以回复我~ 2022-06-11 01:13:09
  • TooooBug 回复 哈佬 #3
    可以发一下具体的错误信息,看看是什么问题哈。
    回复 有任何疑惑可以回复我~ 2022-06-24 09:33:38
问题已解决,确定采纳
还有疑问,暂不采纳
意见反馈 帮助中心 APP下载
官方微信