hyperledger fabcar教程-query.js错误

时间:2018-08-09 09:51:23

标签: hyperledger-fabric hyperledger hyperledger-fabric-ca

首先我跑了enrollAdmin.js

registeruser.js

最后query.js

但发生了此错误。

root@hun:/opt/gopath/src/github.com/hyperledger/fabric-samples/fabcar# sudo node query.js
/opt/gopath/src/github.com/hyperledger/fabric-samples/fabcar/query.js:55
    const request = {
    ^^^^^

SyntaxError:意外的令牌常量

at createScript (vm.js:80:10)
at Object.runInThisContext (vm.js:139:10)
at Module._compile (module.js:616:28)
at Object.Module._extensions..js (module.js:663:10)
at Module.load (module.js:565:32)
at tryModuleLoad (module.js:505:12)
at Function.Module._load (module.js:497:3)
at Function.Module.runMain (module.js:693:10)
at startup (bootstrap_node.js:191:16)
at bootstrap_node.js:612:3

我该如何解决?

0 个答案:

没有答案