npm install web3安装失败?未定义的ls远程

pan*_*ale 0 install node.js web3-donotuse

安装环境

WIN7 64位

I:\ nodejs>节点-v

v10.13.0

I:\ nodejs> npm -v

6.4.1

I:\ nodejs> npm安装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 appli
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
npm ERR! Please check if you have git installed and in your PATH.

npm ERR! A complete log of this run can be found in:
npm ERR!     C:\Users\lenovo\AppData\Roaming\npm-cache\_logs\2018-11-11T09_18_45_834Z-debug.log
Run Code Online (Sandbox Code Playgroud)

我从未遇到过这样的问题,也没有在Google上找到任何线索。

提前致谢

lep*_*ndu 6

npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t git://github.com/frozeman/WebSocket-Node.git
npm ERR!
npm ERR! undefined
npm ERR! No git binary found in $PATH
npm ERR!
npm ERR! Failed using git.
Run Code Online (Sandbox Code Playgroud)

这些行告诉您问题不存在git是您的解决方案。


小智 6

只需安装 git 即可解决您的问题。npm 尝试使用 git 下载