Hyperledger fabric mac 环境搭建 001

文档

http://hyperledger-fabric.readthedocs.io/en/release/prereqs.html

安装 cURL

mac 环境中已经安装了curl

$ curl --version
curl 7.54.0 (x86_64-apple-darwin17.0) libcurl/7.54.0 LibreSSL/2.0.20 zlib/1.2.11 nghttp2/1.24.0

安装 Docker and Docker Compose

下载docker

https://store.docker.com/editions/community/docker-ce-desktop-mac

安装docker

安装docker

测试docker

$ docker --version

$ docker-compose --version

安装 Homebrew

官网

https://brew.sh/index_zh-cn.html

安装命令

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Go Programming Language

$ brew install go

Node.js Runtime and NPM

Node.js version 7.x is not supported at this time.

Node.js - version 6.9.x or greater

fabric 暂时不支持7.x,需要安装6.9.x 或 6.x高的版本,通过 nvm 安装指定版本的node

安装nvm

$ curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.7/install.sh | bash
安装过程
You should create NVM's working directory if it doesn't exist:

  mkdir ~/.nvm

Add the following to ~/.bash_profile or your desired shell
configuration file:

  export NVM_DIR="$HOME/.nvm"
  . "/usr/local/opt/nvm/nvm.sh"

You can set $NVM_DIR to any location, but leaving it unchanged from
/usr/local/opt/nvm will destroy any nvm-installed Node installations
upon upgrade/reinstall.
编辑 .bash_profile ,可以在终端使用 nvm 命令
$ cd ~ 
$ vi .bash_profile 
.bash_profile 添加如下代码
export NVM_DIR="$HOME/.nvm"
  . "/usr/local/opt/nvm/nvm.sh"

然后重新source
$ source .bash_profile
安装 node 的指定版本
nvm install 6.9.5

技术交流 :微信(liyc1215)

商务合作 :微信(ershiyidianjian)

关注公众号

  • 2
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值