hyperledger-composer v1.1:无法实例化链码
hyperledger-composer v1.1:unable to instantiate chaincode
我目前正在研究 hyperLedger composer v1.1 并且正在学习教程。我设法将链代码安装到网络上,但是它在 instantiation.Can 失败了,有人告诉我为什么吗?感谢任何帮助。
命令:
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card
创业网教程-网络0.0.1版本
正在处理这些网络管理员:
用户名:admin
✖ 开始业务网络定义。这可能需要一分钟...
错误:尝试启动业务网络时出错。错误:没有来自任何同行的有效响应。
来自尝试的对等通信的响应是一个错误:错误:2 未知:错误启动容器:无法生成特定于平台的 docker 构建:从构建返回错误:1“npm ERR!代码 EAI_AGAIN
错误!错误号 EAI_AGAIN
错误!请求 https://registry.npmjs.org/composer-common 失败,原因:getaddrinfo EAI_AGAIN registry.npmjs.org:443
npm 错误!此 运行 的完整日志可在以下位置找到:
错误! /root/.npm/_logs/2018-04-04T13_04_07_240Z-debug.log
在链代码构建期间,Fabric 执行 npm install
。看起来你在代理后面(npm install
无法访问 https://registry.npmjs.org/ suggests you're behind a proxy and therefore it can't resolve the URL above (to pull down a Composer npm module/dependency during install)). So you would need to provide an npmrc
file - in the composer network install
command sequence - so that it can configure the behaviour of the npm install - and access a known registry, like https://registry.npmjs.org/ . See more information on this here -> https://hyperledger.github.io/composer/latest/managing/connector-information 。示例用法是:composer network install -c PeerAdmin@hlfv1 -a digitalproperty-network.bna -o npmrcFile=/home/user1/config/npmConfig
我目前正在研究 hyperLedger composer v1.1 并且正在学习教程。我设法将链代码安装到网络上,但是它在 instantiation.Can 失败了,有人告诉我为什么吗?感谢任何帮助。
命令:
composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card 创业网教程-网络0.0.1版本
正在处理这些网络管理员: 用户名:admin
✖ 开始业务网络定义。这可能需要一分钟... 错误:尝试启动业务网络时出错。错误:没有来自任何同行的有效响应。 来自尝试的对等通信的响应是一个错误:错误:2 未知:错误启动容器:无法生成特定于平台的 docker 构建:从构建返回错误:1“npm ERR!代码 EAI_AGAIN 错误!错误号 EAI_AGAIN 错误!请求 https://registry.npmjs.org/composer-common 失败,原因:getaddrinfo EAI_AGAIN registry.npmjs.org:443
npm 错误!此 运行 的完整日志可在以下位置找到: 错误! /root/.npm/_logs/2018-04-04T13_04_07_240Z-debug.log
在链代码构建期间,Fabric 执行 npm install
。看起来你在代理后面(npm install
无法访问 https://registry.npmjs.org/ suggests you're behind a proxy and therefore it can't resolve the URL above (to pull down a Composer npm module/dependency during install)). So you would need to provide an npmrc
file - in the composer network install
command sequence - so that it can configure the behaviour of the npm install - and access a known registry, like https://registry.npmjs.org/ . See more information on this here -> https://hyperledger.github.io/composer/latest/managing/connector-information 。示例用法是:composer network install -c PeerAdmin@hlfv1 -a digitalproperty-network.bna -o npmrcFile=/home/user1/config/npmConfig