安装环境
win7 64位
I:\nodejs>node -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
我从来没有遇到过这样的问题,我也没有在谷歌上找到任何线索。
发布于 2018-11-11 10:15:22
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.
这些行告诉您,问题在于缺少的git
。Here是您的解决方案。
发布于 2019-05-10 06:02:05
只要安装好你的问题就可以解决了。npm尝试使用git下载
发布于 2019-06-20 07:10:43
如果已经安装了git,那么只需在命令提示符中输入git
,就可以确保它是全局可访问的。
如果您没有看到git命令列表,那么必须在environment variable
部分的windows中配置GIT路径。
https://stackoverflow.com/questions/53247394
复制相似问题