1

我正在关注开发者教程(https://hyperledger.github.io/composer/latest/tutorials/developer-tutorial)。当我尝试使用 - 启动业务时 composer network start --networkName tutorial-network --networkVersion 0.0.1 --networkAdmin admin --networkAdminEnrollSecret adminpw --card PeerAdmin@hlfv1 --file networkadmin.card,这是我看到的错误:

Starting business network tutorial-network at version 0.0.1

Processing these Network Admins: 
    userName: admin

✖ Starting business network definition. This may take a minute...
Error: Error trying to start business network. Error: No valid responses from any peers.
Response from attempted peer comms was an error: Error: 2 UNKNOWN: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code EAI_AGAIN
npm ERR! errno EAI_AGAIN
npm ERR! request to https://registry.npmjs.org/composer-common failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443

npm ERR! A complete log of this run can be found in:
npm ERR!     /root/.npm/_logs/2018-05-21T20_15_54_162Z-debug.log
"
Command failed

错误信息

我在作曲家 v0.19.5 上。很有帮助,但没有解决我的问题。我已经成功安装了网络,启动它是问题!

4

1 回答 1

1

看下面的答案 -

使用超级账本作曲家启动超级账本结构网络时出错

在链码构建期间,Fabric 执行 npm 安装。看起来您在代理后面(npm install 无法访问https://registry.npmjs.org/表明您在代理后面,因此它无法解析上面的 URL(拉下 Composer npm安装期间的模块/依赖项))。因此,您需要提供一个 npmrc 文件 - 在 composer network install 命令序列中 - 以便它可以配置 npm install 的行为 - 并访问一个已知的注册表,例如https://registry.npmjs.org/。在此处查看更多信息-> https://hyperledger.github.io/composer/latest/managing/connector-information

示例可能是:

proxy="http://172.10.117.21:3128/"
https-proxy="http://172.10.117.31:3128/"
registry = "http://registry.npmjs.org/"
于 2018-05-21T21:44:49.230 回答