我是区块链新手,我们正在使用超级账本结构来运行它。 项目说明如下:
npm i
//安装依赖项npm run env:restart
//创建新的开发区块链网络-从项目的根源开始npm run cc:start -- supplychain
//安装智能合约
然后是命令以在分类帐中创建记录。 前两个步骤正在运行,即我的网络已成功建立。
步骤号3失败,并出现以下错误。
我还安装了hurl。以前也尝试过清除缓存,但这也不能减轻我的负担。
请帮助,我不了解此错误,并且是该错误的定义行/方面(可能会帮助搜索)。我已经分别尝试了一些零碎的部分,但是到现在为止,总体的理解将大有帮助。
Error: could not assemble transaction, err proposal response was not successful, error code 500, msg error starting container: error starting container: Failed to generate platform-specific docker build: Error returned from build: 127 "/bin/sh: npm: not found
"
[hurley] - Found error while running script!
(node:22518) UnhandledPromiseRejectionWarning: Error: Errors found in script, stopping execution
at Object.<anonymous> (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:116:27)
at step (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/tslib/tslib.js:139:27)
at Object.next (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/tslib/tslib.js:120:57)
at /home/avantika/Documents/major-blockchain/pharma-chain/node_modules/tslib/tslib.js:113:75
at new Promise (<anonymous>)
at Object.__awaiter (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/tslib/tslib.js:109:16)
at Object.execContent (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/@worldsibu/hurley/dist/utils/sysWrapper.js:112:24)
at InstallChaincodeShGenerator.BaseGenerator.run (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/@worldsibu/hurley/dist/generators/base.js:18:40)
at ChaincodeGenerator.install (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/@worldsibu/hurley/dist/generators/chaincodegenerator.js:59:35)
at ChaincodeCLI.<anonymous> (/home/avantika/Documents/major-blockchain/pharma-chain/node_modules/@worldsibu/hurley/dist/cli.js:351:55)
(node:22518) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). (rejection id: 2)
(node:22518) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.