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

Hyperledger结构-npm安装依赖项错误“;grpc@1.17.0install:`node pre-gyp install--fallback to build--library=static_library`;,npm,hyperledger-fabric,Npm,Hyperledger Fabric,Hyperledger Fabric Commercial paper example()在我尝试使用npm install安装Magnetor应用程序依赖项时出现此错误 日志: 1359详细堆栈错误:grpc@1.17.0install:`node pre-gyp install--fallback to build--library=static\u library` 1359详细堆栈退出状态1 1359事件发射器上的详细堆栈。(/home/hyperfabric/.nvm/versions

Hyperledger Fabric Commercial paper example()在我尝试使用npm install安装Magnetor应用程序依赖项时出现此错误

日志:

1359详细堆栈错误:grpc@1.17.0install:`node pre-gyp install--fallback to build--library=static\u library`
1359详细堆栈退出状态1
1359事件发射器上的详细堆栈。(/home/hyperfabric/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/npm lifecycle/index.js:301:16)
1359 EventEmitter.emit处的详细堆栈(events.js:200:13)
1359子进程的详细堆栈。(/home/hyperfabric/.nvm/versions/node/v12.4.0/lib/node_modules/npm/node_modules/npm lifecycle/lib/spawn.js:55:14)
1359 ChildProcess.emit上的详细堆栈(events.js:200:13)
1359 maybeClose的详细堆栈(internal/child_process.js:1021:16)
1359 Process.ChildProcess.\u handle.onexit处的详细堆栈(internal/child\u Process.js:283:5)
1360详细pkgidgrpc@1.17.0
1361详细cwd/home/hyperfabric/go/src/testFabric/fabric samples/commercial paper/organization/magnetocorp/application
1362详细Linux 4.15.0-51-generic
1363详细argv“/home/hyperfabric/.nvm/versions/node/v12.4.0/bin/node”“/home/hyperfabric/.nvm/versions/node/v12.4.0/bin/npm”“安装”
1364详细节点v12.4.0
1365详细npm v6.9.0
1366错误代码ELIFECYCLE
1367错误号1
1368错误grpc@1.17.0install:`node pre-gyp install--fallback to build--library=static\u library`
1368错误退出状态1
1369错误在测试时失败grpc@1.17.0安装脚本。
1369错误这可能不是npm的问题。上面可能还有其他日志输出。
1370详细退出[1,真]

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


关于这个问题有很多问题。回到这里,我可能会解释得更好。gRPC dep固定在特定版本上,您使用节点12尝试构建本机节点模块,该模块固定在将使用节点8或节点10构建的版本上。我出去确认,如果我从这个时间段提取SDK的版本并使用节点12构建它,就会发生这个错误(预期),节点10和8工作得很好。我们预计此故障会发生在节点12上。是的,gRPC确实存在构建问题,但在您使用正确版本的node之前,我们无法确定您是否受到影响。
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 ]