저는 IBM 블록 체인 선거 시스템 인 Evote를 실행하려고합니다. 링크 = https://github.com/IBM/evote . "npm run serve"를 사용하여 클라이언트를 실행하려고 할 때. 다음과 같은 오류가 발생합니다.
ahmed@ahmed-Inspiron-3580:~/evote/web-app/client$ npm run serve
> [email protected] 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)
아마도 아주 오래된 버전의 node.js를 사용하고있을 것입니다. 다음을 수행하여 버전을 확인할 수 있습니다.
node -v
노드 8을 사용해야합니다 (이보다 높은 버전에서는 작동하지 않을 수 있음).
nvm
노드 버전 관리를위한 메커니즘으로 사용 하는 것이 좋습니다 . 참조 https://github.com/nvm-sh/nvm를
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다