我正在使用 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
无济于事。