我已在对等方上安装了链码,并且工作正常,同时实例化链码时,出现以下错误。 (在ec2实例上工作)
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.
答案 0 :(得分:0)
我找到了解决方案,我正在使用AWS Managed Blockchain Service(1.2版),并且正在使用shim api 1.4版本,并且它正尝试安装升级的依赖项(其他npm软件包)。 当前,它不支持在chaincode中安装npm软件包。 因此,您可以查看我的 package.json 文件作为参考并坚持使用,不要添加其他npm软件包,这些软件包最终都会失败。
.hide