Hi Guest

More contents, please log on!

Bitmere.com 区块链技术 Content
一、安装 DApp 开发环境
1.1 安装 Node.js
使用官方长期支持的 8.10.0LTS 版本,点击这个链接下载 32 位安装包,32 位安装包.
即可用于 32 位系统,也可用于 64 位系统。
如果你确认你的系统是 64 位,也可以下载 64 位包装包。
下载后直接安装即可。安装完毕,打开一个控制台窗口,可以使用 node 了:

C:\Users\block> node –v
v8.10.0

1.2 安装节点仿真器
在控制台执行以下命令:

C:\Users\block> npm install –g ganache-cli

安装完毕后,执行命令验证安装成功:

C:\Users\block> ganache-cli
Ganache CLI v6.0.3 (ganache-core: 2.0.2)

如果你是 Win10,也可以下载预编译的Win10 软件包,安装图形版的 ganache。
1.3 安装 solidity 编译器

C:\Users\block> npm install –g solc

安装完毕后,执行命令验证安装成功

C:\Users\block> solcjs –version
0.40.2+commit.3155dd80.Emscripten.clang

1.4 安装 web3

C:\Users\block> npm install –g web3@0.20.2

安装验证:

C:\Users\block> node –p ‘require(“web3”)’
{[Function: Web3]
providers:{…}}

1.5 安装 truffle 框架
执行以下命令安装 truffle 开发框架:

C:\Users\block> npm install –g truffle

验证安装:

C:\Users\block> truffle.cmd version
Truffle v4.1.3 (core 4.1.3)

1.6 安装 webpack
执行以下命令安装 webpack:

C:\Users\block> npm install –g webpack@3.11.0

验证安装

C:\Users\block> webpack –v
3.11.0

至此,环境搭建好了完结撒花~~
BitMere.com is Information release platform,just provides information storage space services.
The opinions expressed are solely those of the author,Does not constitute advice, please treat with caution.
You have to log in before you can reply Login | 立即注册

Points Rules

Write the first review

杨小公子君莫邪 初中生
  • Follow

    0

  • Following

    0

  • Articles

    13

59600
Promoted