V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
jmyz0455
V2EX  ›  程序员

yarn 出现 tunneling socket could not be established, cause=socket hang up

  •  
  •   jmyz0455 · 2019-06-26 18:46:11 +08:00 · 2050 次点击
    这是一个创建于 1829 天前的主题,其中的信息可能已经有所发展或是发生改变。

    事情是这样的,最近开始用 yarn,因为某些原因不打算更换源,所以下载慢就只能想办法走特别线路。

    然后我使用了跟本站名字相似的网络工具,Windows 客户端的全局模式,端口开在 1234 上,我当时以为只需要以下设置即可:

    yarn config set proxy 'http://127.0.0.1:1234'
    yarn config set https-proxy 'http://127.0.0.1:1234'
    

    可是跑 yarn 的时候还是报错:

    Error: https://registry.yarnpkg.com: tunneling socket could not be established, cause=socket hang up

    感觉是 socket 没法转发出去?求懂这个的朋友解答一下。

    目前尚无回复
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   实用小工具   ·   2242 人在线   最高记录 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 01:07 · PVG 09:07 · LAX 18:07 · JFK 21:07
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.