Hyperledger Fabric-npm安装依赖项错误“ grpc@1.17.0安装:`node-pre-gyp install --fallback-to-build --library = static_library`”

时间:2019-06-11 12:40:30

标签: npm hyperledger-fabric

当我尝试使用npm install安装Magneto应用程序依赖项时,Hyperledger Fabric商业用纸示例(https://hyperledger-fabric.readthedocs.io/en/release-1.4/tutorial/commercial_paper.html)给了我这个错误。

日志:

1359 verbose stack Error: grpc@1.17.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
1359 verbose stack Exit status 1
1359 verbose stack     at EventEmitter.<anonymous> (/home/hyperfabric/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/index.js:301:16)
1359 verbose stack     at EventEmitter.emit (events.js:200:13)
1359 verbose stack     at ChildProcess.<anonymous> (/home/hyperfabric/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/npm-lifecycle/lib/spawn.js:55:14)
1359 verbose stack     at ChildProcess.emit (events.js:200:13)
1359 verbose stack     at maybeClose (internal/child_process.js:1021:16)
1359 verbose stack     at Process.ChildProcess._handle.onexit (internal/child_process.js:283:5)
1360 verbose pkgid grpc@1.17.0
1361 verbose cwd /home/hyperfabric/go/src/testFabric/fabric-samples/commercial-paper/organization/magnetocorp/application
1362 verbose Linux 4.15.0-51-generic
1363 verbose argv "/home/hyperfabric/.nvm/versions/node/v12.4.0/bin/node" "/home/hyperfabric/.nvm/versions/node/v12.4.0/bin/npm" "install"
1364 verbose node v12.4.0
1365 verbose npm  v6.9.0
1366 error code ELIFECYCLE
1367 error errno 1
1368 error grpc@1.17.0 install: `node-pre-gyp install --fallback-to-build --library=static_library`
1368 error Exit status 1
1369 error Failed at the grpc@1.17.0 install script.
1369 error This is probably not a problem with npm. There is likely additional logging output above.
1370 verbose exit [ 1, true ]

1 个答案:

答案 0 :(得分:0)

您正在使用不受支持的Node.js版本来构建项目,Fabric当前支持8.9.x上的版本的Node builds,我建议您查看此处的先决条件,并确保已满足所有要求:

https://hyperledger-fabric.readthedocs.io/en/latest/prereqs.html