admin 管理员组

文章数量: 1184232

已安装:Node.js v8.11.3,Mongodb v3.2

1. 使用 npm view web3 versions 命令查看所有可安装的web3版本

2. npm install web3命令安装最新版本,也可以指定版本:npm install web3@0.2.6

3. 安装时出现了几个主要的错误:

(1)缺少GIT,需安装GIT (https://gitforwindows/)

(2)提示Can't find Python executable "python", you can set the PYTHON env variable.,缺少Python,注意web3对Python有版本要求,目前最新版本是“web3@1.0.0-beta.34”,其依赖的Python版本为V2.7,大于或小于该版本均报错。详细内容参见:C:\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js(第479行)。

(3)提示安装,这个可以不装,不影响使用。

(4)提示“Cannot find module './build/Release/scrypt'”,该问题由安装scrypt模块时,其index.js中的var scryptNative = require("./build/Release/scrypt")语句错误,将其修改为var scryptNative = require("scrypt")即可解决。

4.安装完成后使用 npm ls web3查看当前版本信息




本文标签: 流程 错误