Unexpected identifier in composer-common/lib/cardstore/businessnetworkcardstore.js:54

Posted 赏月斋

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Unexpected identifier in composer-common/lib/cardstore/businessnetworkcardstore.js:54相关的知识,希望对你有一定的参考价值。

c错误描述

Unexpected identifier in composer-common/lib/cardstore/businessnetworkcardstore.js:54

  

yo hyperledger-composer:businessnetwork

/home/xuzheng/.nvm/versions/node/v6.6.0/lib/node_modules/generator-hyperledger-composer/node_modules/composer-common/lib/cardstore/businessnetworkcardstore.js:54
    async get(cardName) {
          ^^^
SyntaxError: Unexpected identifier
    at Object.exports.runInThisContext (vm.js:76:16)
    at Module._compile (module.js:528:28)
    at Object.Module._extensions..js (module.js:565:10)
    at Module.load (module.js:473:32)
    at tryModuleLoad (module.js:432:12)
    at Function.Module._load (module.js:424:3)
    at Module.require (module.js:483:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/home/xuzheng/.nvm/versions/node/v6.6.0/lib/node_modules/generator-hyperledger-composer/node_modules/composer-common/index.js:56:43)
    at Module._compile (module.js:556:32)

  解决方案:

 you do not have Node.js 8 installed; Composer has required Node.js 8 since before v0.16.x. Please upgrade your version of Node.js to 8.x.

 

以上是关于Unexpected identifier in composer-common/lib/cardstore/businessnetworkcardstore.js:54的主要内容,如果未能解决你的问题,请参考以下文章

repl node js问题 SyntaxError: Unexpected identifier

Import Unexpected identifier + SyntaxError: Unexpected string

SyntaxError: Unexpected identifier, blobServiceClient: any;

eval()解析object出现Unexpected identifier异常

尝试导入时出现 Uncaught SyntaxError: Unexpected identifier error

节点包 'node-fetch' SyntaxError: Unexpected identifier