【问题标题】:Error Installing web3js for Ethereum / Unable to connect to github.com为以太坊安装 web3js 时出错/无法连接到 github.com
【发布时间】:2018-04-29 09:14:16
【问题描述】:

我正在使用 npm 安装 web3js:

npm install web3

它最终失败了。这是我得到的输出......

npm WARN deprecated tar.gz@1.0.7: â ï¸  WARNING â ï¸ tar.gz module has been deprecated and your application is vulnerable. Please use tar module instead: https://npmjs.com/tar
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated minimatch@0.3.0: Please update to minimatch 3.0.2 or higher to avoid a RegExp DoS issue
npm ERR! Error while executing:
npm ERR! /usr/bin/git ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! fatal: unable to connect to github.com:
npm ERR! github.com[0: 192.30.255.113]: errno=Connection timed out
npm ERR! github.com[1: 192.30.255.112]: errno=Connection timed out

这是一些版本信息:

uname -a
Linux bde2744830c3 4.1.12-103.7.1.el7uek.x86_64

npm --version 
5.5.1

我搜遍了 SO 和其他有类似帖子的网站,但没有任何帮助。我试过了

npm cache verify 

无济于事。

【问题讨论】:

    标签: npm ethereum web3js


    【解决方案1】:

    这可能是由于 repo url 使用了 git 协议 (git://) 而不是 http。请确保您已打开入站端口 9418 以使其正常工作。

    希望对您有所帮助。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 2017-12-28
      • 1970-01-01
      • 2021-07-17
      • 2017-01-22
      • 2013-10-21
      • 2013-04-16
      • 1970-01-01
      • 2017-05-13
      相关资源
      最近更新 更多