I have installed the chaincode on the peer and it's working fine, while instantiating the chaincode I am getting the error mentioned below. (working on the ec2 instance)
Error: could not assemble transaction, err Proposal response was not successful, error code 500, msg failed to execute transaction 2914d25b521335397aa17cf83bdaba7e67189e56f5c31cfe2d9da88d82a39714: error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 1 "npm ERR! code ENOTCACHED
npm ERR! request to https://registry.npmjs.org/@ampretia%2fx509 failed: cache mode is 'only-if-cached' but no cached response available.