无法安装 web3 节点模块
Cannot install web3 node module
根据文档,npm install web3
会安装该库,但是当我尝试安装该模块时它抛出以下错误:
PS F:\Sportist> npm install web3
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
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 ERR! Error while executing:
npm ERR! C:\Users\aayush.thakur\AppData\Local\Programs\Git\cmd\git.EXE ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aayush.thakur\AppData\Roaming\npm-cache\_logs18-08-01T07_46_08_899Z-debug.log
完整日志:link
尝试通过执行命令添加git配置:git config --global url."https://".insteadOf git://
此 git 配置会将 git://github.com/frozeman/WebSocket-Node.git
更改为 https://github.com/frozeman/WebSocket-Node.git
根据文档,npm install web3
会安装该库,但是当我尝试安装该模块时它抛出以下错误:
PS F:\Sportist> npm install web3
npm WARN deprecated fs-promise@2.0.3: Use mz or fs-extra^3.0 with Promise Support
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 ERR! Error while executing:
npm ERR! C:\Users\aayush.thakur\AppData\Local\Programs\Git\cmd\git.EXE ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! fatal: read error: Invalid argument
npm ERR!
npm ERR! exited with error code: 128
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\aayush.thakur\AppData\Roaming\npm-cache\_logs18-08-01T07_46_08_899Z-debug.log
完整日志:link
尝试通过执行命令添加git配置:git config --global url."https://".insteadOf git://
此 git 配置会将 git://github.com/frozeman/WebSocket-Node.git
更改为 https://github.com/frozeman/WebSocket-Node.git