根据文档,npm install web3
将安装库,但是当我尝试安装模块时,它将引发以下错误:
PS F:\Sportist> npm install web3
npm WARN deprecated [email protected]: Use mz or fs-extra^3.0 with Promise Support
npm WARN deprecated [email protected]: ⚠️ 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\_logs\2018-08-01T07_46_08_899Z-debug.log
完整日志:链接
尝试通过执行以下命令添加git config: git config --global url."https://".insteadOf git://
此git配置将更git://github.com/frozeman/WebSocket-Node.git
改为https://github.com/frozeman/WebSocket-Node.git
本文收集自互联网,转载请注明来源。
如有侵权,请联系 [email protected] 删除。
我来说两句