npm运行服务意外令牌…选项

npm运行服务意外令牌…选项,npm,blockchain,hyperledger,ibm-blockchain,Npm,Blockchain,Hyperledger,Ibm Blockchain,我正在尝试运行IBM区块链选举系统Evote。链接=。 当我尝试使用“npm运行服务”运行客户端时。我得到以下错误 ahmed@ahmed-Inspiron-3580:~/evote/web-app/client$ npm run serve > client@0.1.0 serve /home/ahmed/evote/web-app/client > vue-cli-service serve /home/ahmed/evote/web-app/client/node_modu

我正在尝试运行IBM区块链选举系统Evote。链接=。 当我尝试使用“npm运行服务”运行客户端时。我得到以下错误

ahmed@ahmed-Inspiron-3580:~/evote/web-app/client$ npm run serve

> client@0.1.0 serve /home/ahmed/evote/web-app/client
> vue-cli-service serve

/home/ahmed/evote/web-app/client/node_modules/open/index.js:29
        ...options
        ^^^

SyntaxError: Unexpected token ...
    at createScript (vm.js:74:10)
    at Object.runInThisContext (vm.js:116:10)
    at Module._compile (module.js:533:28)
    at Object.Module._extensions..js (module.js:580:10)
    at Module.load (module.js:503:32)
    at tryModuleLoad (module.js:466:12)
    at Function.Module._load (module.js:458:3)
    at Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (/home/ahmed/evote/web-app/client/node_modules/@vue/cli-shared-utils/lib/openBrowser.js:9:14)
ahmed@ahmed-Inspiron-3580:~/evote/web app/client$npm运行服务
> client@0.1.0serve/home/ahmed/evote/web app/client
>vue cli服务
/home/ahmed/evote/web app/client/node_modules/open/index.js:29
…选项
^^^
SyntaxError:意外标记。。。
在createScript上(vm.js:74:10)
在Object.runInThisContext(vm.js:116:10)
在模块处编译(Module.js:533:28)
在Object.Module.\u extensions..js(Module.js:580:10)
在Module.load(Module.js:503:32)
在tryModuleLoad时(module.js:466:12)
在Function.Module.\u加载(Module.js:458:3)
at Module.require(Module.js:513:17)
根据需要(内部/module.js:11:18)

在对象处。

您可能正在使用非常旧版本的node.js。您可以通过执行以下操作来检查版本:

node -v
您需要使用node 8(它可能无法与任何高于该版本的版本一起使用)


我建议使用
nvm
作为管理节点版本的机制。请参见受影响模块中的代码,这些代码对于任何提供帮助的人都是必不可少的。