Hyperledger Fabric 智能合约实战 sdk node软件安装

Posted thefist11

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hyperledger Fabric 智能合约实战 sdk node软件安装相关的知识,希望对你有一定的参考价值。

  1. 安装node 的fabric-ca-client和fabric-client
npm install fabric-ca-client
npm install client
  1. 安装 fabric-network
npm install fabric-network

设置一个参数,否则会有错误"javascript heap of memory".

export NODE_OPTIONS=–max_old_space_size=4096

  1. node 升级到稳定版:
n stable 

安装需要插件

npm install pkcs11js --unsafe-perm 

–unsafe-perm 参数意思:
If npm detects it is running as root it drops to a non-privileged user which then doesn’t have permissions to write to /root/.node-gyp.
The --unsafe-perm option stops it from changing user.
nvm doesn’t have this problem when not using sudo because it stores everything under the current users’ home directory.

以上是关于Hyperledger Fabric 智能合约实战 sdk node软件安装的主要内容,如果未能解决你的问题,请参考以下文章

Hyperledger Fabric 智能合约实战 安装fabric

Hyperledger Fabric 智能合约实战 sdk node软件安装

Hyperledger Fabric 智能合约实战 访问链码接口

Hyperledger Fabric 智能合约实战 go语言开发

Hyperledger Fabric 智能合约实战 软件安装Docker Docker-composergo

Hyperledger Fabric教程--部署Fabric智能合约