hyperledger-composer v1.1:unable to instantiate chaincode

前端 未结 1 1213
情话喂你
情话喂你 2021-01-17 05:16

I am currently working on hyperLedger composer v1.1 and am following the tutorials. I managed to install the chaincode onto the network however it fails at instantiation.Can

相关标签:
1条回答
  • 2021-01-17 05:16

    During the chaincode build, Fabric does an npm install. Looks like you're behind a proxy (npm install not being able to access 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 . Example usage is: composer network install -c PeerAdmin@hlfv1 -a digitalproperty-network.bna -o npmrcFile=/home/user1/config/npmConfig

    0 讨论(0)
提交回复
热议问题