如何在我的分散式应用程序中安装 web3 工作版本

Posted

技术标签:

【中文标题】如何在我的分散式应用程序中安装 web3 工作版本【英文标题】:How to install web3 working version in my Decentralized application 【发布时间】:2019-03-31 16:31:34 【问题描述】:

尝试安装 web3 并收到此错误

npm WARN registry Using stale data from https://registry.npmjs.org/ because
         the host is inaccessible -- are you offline?
npm WARN registry Using stale package data from https://registry.npmjs.org/
         due to a request error during revalidation.
npm ERR! code ENOGIT
npm ERR! Error while executing:
npm ERR! undefined ls-remote -h -t 
         https://github.com/frozeman/bignumber.js-nolookahead.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\elish\AppData\Roaming\npm-cache\_logs\2018-10-26T15_46_43_457Z-debug.log

【问题讨论】:

【参考方案1】:

你没有安装 git。

你需要先安装git。

从这里下载并安装,然后重新运行您的命令 https://git-scm.com/downloads

【讨论】:

是的,我安装了 git 并重新运行了代码,我收到了同样的错误

以上是关于如何在我的分散式应用程序中安装 web3 工作版本的主要内容,如果未能解决你的问题,请参考以下文章

如何在我的 Kubernetes 容器中安装 tar 二进制文件以使 kubectl cp 工作?

如何在谷歌colab中安装web3

如何在我的 docker 镜像中安装 postgresql?

如何在 sles 12 中安装 docker?

我在 Angular 8 中安装了引导程序但无法正常工作。为啥?

如何在IOS中安装phonegap-plugin-push