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

时间:2018-10-26 21:56:54

标签: node.js git npm web3js

尝试安装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 个答案:

答案 0 :(得分:0)

您尚未安装git。

您需要先安装git。

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