我正在尝试使用Composer 19.8设置两个组织设置。我给了
composer network start -c PeerAdmin@byfn-network-org1 -n siemens-supply-chain1 -V 0.0.1 -o endorsementPolicyFile=/tmp/composer/endorsement-policy.json -A alice -C alice/admin-pub.pem -A bob -C bob/admin-pub.pem -o npmrcFile=/home/mfgteg/Desktop/fabric-samples/first-network/npmConfig
启动网络。其中npmConfig包含:
proxy=http://xxx.xx.xxx.xx:xxxx/
https-proxy=http://xxx.xx.xxx.xx:xxxx/
即我的代理配置。我尝试运行测试结构ccenv图像容器并使用bash中的npm set配置了代理,并且能够安装与作曲家相关的npm模块。但是再次尝试运行上述命令进行网络启动时,却出现错误:
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-runtime-hlfv1 failed, reason: getaddrinfo EAI_AGAIN registry.npmjs.org:443