Yarn: Error: connect ECONNREFUSED 127.0.0.1:443
通过纱线安装ELM时,我得到
-- ERROR -----------------------------------------------------------------------
Something went wrong while fetching the following URL:
https://github.com/elm/compiler/releases/download/0.19.1/binary-for-windows-64-bit.gz
It is saying:
Error: connect ECONNREFUSED 127.0.0.1:443
NOTE: You can avoid npm entirely by downloading directly from:
https://github.com/elm/compiler/releases/download/0.19.1/binary-for-windows-64-bit.gz
当我手动浏览到https://github.com/elm/compiler/releases/download/0.19.1/binary-for-windows-64-bit.gz时。 我懂了
但是其他人可以访问该链接,它会下载文件。
编辑:
主机文件:
127.0.0.1 view-localhost # view localhost server
127.0.0.1 mydevsnapcap.com www.mydevsnapcap.com app.mydevsnapcap.com internal.mydevsnapcap.com
0.0.0.1 mssplus.mcafee.com
编辑
此功能可在几天前使用。
更多测试:
我无法使用光纤连接从手机和PC上访问它,但是可以使用手机连接在手机和手机上访问它。
您的计算机或网络中的某个内容将github.com域解析为127.0.0.1,即localhost。 因此,每次尝试进行此访问时,它都会尝试访问在您发出请求的同一台计算机上运行的服务。
检查您的DNS设置。
检查主机文件中是否存在
如果您在网络上运行类似Pi-Hole的工具,请检查它是否没有捕获到github.com
事实证明是出于某种原因阻止了该链接是我的ISP。 我改用google dns,一切都很好:https://developers.google.com/speed/public-dns/docs/using
以管理员身份打开CMD,然后复制并粘贴以下内容:
1 2 3 4 5 6 7 8 | ipconfig/release ipconfig/all ipconfig/flushdns ipconfig/renew netsh int ip set dns netsh winsock reset netsh winsock reset netsh int ip reset reset.log hit |
重新启动电脑。 然后再次尝试添加纱包。
如果为您带来好处,请投票支持!