0
【Blockchain 笔记】区块链的环境搭建
source link: https://binlep.github.io/2020/03/30/%E3%80%90Blockchain%20%E7%AC%94%E8%AE%B0%E3%80%91%E5%8C%BA%E5%9D%97%E9%93%BE%E7%9A%84%E7%8E%AF%E5%A2%83%E6%90%AD%E5%BB%BA/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
【Blockchain 笔记】区块链的环境搭建
安装 metamask
Firefox 或者 Chrome 安装插件 metamask
安装 npm
Win 10 下的安装要求就一点,nodejs 的版本:(7.1 < version < 12),不然有一些组件的代码不支持
Ubuntu 16.04 默认的 npm 版本是 3.5.2 的,就导致没法和 nodejs 兼容
所以我们要换一种方式安装 npm 和 nodejs
curl -sL https://deb.nodesource.com/setup_8.x | sudo -E bash -
apt-get install -y nodejs
这样就安装完 npm 和 nodejs 了,之后输入该命令进行换源:
npm config set registry https://registry.npm.taobao.org
之后可以安装 nrm 进行便捷换源
安装 remix-ide
Ubuntu 16.04 输入如下命令:
npm install -g remix-ide --unsafe-perm=true --allow-root
windows 只要 nodejs 版本对即可(7.1 < version < 12)
npm install -g remix-ide
启动的时候用该命令即可:
remix-ide
访问端口要注意,开的是 8080 端口,而且要加 index 后缀:
http://localhost:8080/index
安装 ganache-cli
区块链的测试节点
npm install -g ganache-cli
安装 geth
直接去官网下载:https://geth.ethereum.org
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK