it mentions
Dependencies on other versions of fabric-shim or other library packages require that you bundle them with your chaincode because peer nodes do not have internet access to the NPM repository.
I have a simple package.json that has the following structure
{
"name": "test",
"version": "0.0.1",
"description": "node.js",
"engines": {
"node": ">=8.4.0",
"npm": ">=5.3.0"
},
"scripts": {
"start": "fabric-chaincode-node start"
},
"engine-strict": true,
"license": "Apache-2.0",
"dependencies": {
"fabric-shim": "^1.4.5",
"fabric-contract-api": "^1.4.5"
}
}
Since there is no internet access to the peer I am unable to instantiate the chaincode because internally the chaincode runs npm install --production
which fails.
How do I bundle my CC and install it on the peer when the peer has no internet connection?