首页
学习
活动
专区
圈层
工具
发布
首页
学习
活动
专区
圈层
工具
MCP广场
社区首页 >问答首页 >npm安装web3安装失败:未定义ls-远程

npm安装web3安装失败:未定义ls-远程
EN

Stack Overflow用户
提问于 2018-11-11 09:28:44
回答 6查看 20.1K关注 0票数 9

安装环境

win7 64位

I:\nodejs>node -v

v10.13.0

I:\nodejs>npm -v

6.4.1

I:\nodejs>npm安装web3

代码语言:javascript
运行
复制
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

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

EN

回答 6

Stack Overflow用户

发布于 2018-11-11 10:15:22

代码语言:javascript
运行
复制
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.

这些行告诉您,问题在于缺少的gitHere是您的解决方案。

票数 25
EN

Stack Overflow用户

发布于 2019-05-10 06:02:05

只要安装好你的问题就可以解决了。npm尝试使用git下载

票数 6
EN

Stack Overflow用户

发布于 2019-06-20 07:10:43

如果已经安装了git,那么只需在命令提示符中输入git,就可以确保它是全局可访问的。

如果您没有看到git命令列表,那么必须在environment variable部分的windows中配置GIT路径。

Check this for more detail

票数 2
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/53247394

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档