Node.js 执行Node registerAdmin.js区块链金枪鱼应用程序时出错

Node.js 执行Node registerAdmin.js区块链金枪鱼应用程序时出错,node.js,hyperledger-fabric,blockchain,smartcontracts,Node.js,Hyperledger Fabric,Blockchain,Smartcontracts,我正在尝试执行金枪鱼区块链应用程序,请参见下面的git示例 在运行“node registerAdmin.js”时,我遇到以下错误 tuna-app/node_modules/fabric-client/lib/Client.js:746 async _createOrUpdateChannel(request, have_envelope) { ^^^^^^^^^^^^^^^^^^^^^^ SyntaxError: Unexpected identifier

我正在尝试执行金枪鱼区块链应用程序,请参见下面的git示例

在运行“node registerAdmin.js”时,我遇到以下错误

tuna-app/node_modules/fabric-client/lib/Client.js:746
    async _createOrUpdateChannel(request, have_envelope) {
          ^^^^^^^^^^^^^^^^^^^^^^
SyntaxError: Unexpected identifier
    at createScript (vm.js:56:10)
    at Object.runInThisContext (vm.js:97:10)
    at Module._compile (module.js:542:28)
    at Object.Module._extensions..js (module.js:579:10)
    at Module.load (module.js:487:32)
    at tryModuleLoad (module.js:446:12)
    at Function.Module._load (module.js:438:3)
    at Module.require (module.js:497:17)
    at require (internal/module.js:20:19)

npm和节点版本非常旧。我升级了版本并解决了错误

使用以下命令升级NPM&node-

npm install -g npm@latest

npm install -g node

npm rebuild