Reputation: 51
Situation: i'm working with the hyperledger-composer and using the fabric of "fabric-dev-server" BEHIND the proxy in a enterprise-environment without access to the internet!
Question: How can i managed to work without a npm-Registry (because i did not have one local). I tried out to do some "localhost" -statements in the npmrcFile but this doesn't work.
Is there any chance to Start my business-network ?
thx
Upvotes: 0
Views: 99
Reputation: 5868
node.js chaincode in hyperledger fabric currently needs access to an npm registry when building the chaincode image. As composer utilises node.js chaincode, it is dependent on this access.
The only option you would have is to get an npm registry setup behind your firewall that can be populated with npm modules. Because the dependency tree will be complex, the best way would be to allow the registry access to the internet so that if it doesn't contain an npm module, it can download it from the official npm registry and cache it.
You would then need to point the business network, when you install the business network on your peers, to use that npm registry behind your firewall. You can find more information about this at https://hyperledger.github.io/composer/latest/managing/connector-information where it talks about the npmrcFile
option.
Upvotes: 1