tinafangkunding / nCov-page

疫情数据展示页模板,根据 serverless framework 构建
10 stars 5 forks source link

Execute command "npm run bootstrap" return error. #2

Open whitebear2012 opened 4 years ago

whitebear2012 commented 4 years ago

Execute command "npm run bootstrap" return error.

Error message as below: [test@mydb12c nCov-page]$ npm run bootstrap

tencent-fullstack-vue-application@0.0.0 bootstrap /home/test/nCov/nCov-page node scripts/bootstrap.js

/home/test/nCov/nCov-page/scripts/bootstrap.js:11 async function installDependencies(dir) { ^^^^^^^^

SyntaxError: Unexpected token function at createScript (vm.js:56:10) at Object.runInThisContext (vm.js:97:10) at Module._compile (module.js:549:28) at Object.Module._extensions..js (module.js:586:10) at Module.load (module.js:494:32) at tryModuleLoad (module.js:453:12) at Function.Module._load (module.js:445:3) at Module.runMain (module.js:611:10) at run (bootstrap_node.js:394:7) at startup (bootstrap_node.js:160:9)

npm ERR! Linux 3.10.0-1062.4.1.el7.x86_64 npm ERR! argv "/usr/bin/node" "/usr/bin/npm" "run" "bootstrap" npm ERR! node v6.17.1 npm ERR! npm v3.10.10 npm ERR! code ELIFECYCLE npm ERR! tencent-fullstack-vue-application@0.0.0 bootstrap: node scripts/bootstrap.js npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the tencent-fullstack-vue-application@0.0.0 bootstrap script 'node scripts/bootstrap.js'. npm ERR! Make sure you have the latest version of node.js and npm installed. npm ERR! If you do, this is most likely a problem with the tencent-fullstack-vue-application package, npm ERR! not with npm itself. npm ERR! Tell the author that this fails on your system: npm ERR! node scripts/bootstrap.js npm ERR! You can get information on how to open an issue for this project with: npm ERR! npm bugs tencent-fullstack-vue-application npm ERR! Or if that isn't available, you can get their info via: npm ERR! npm owner ls tencent-fullstack-vue-application npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request: npm ERR! /home/test/nCov/nCov-page/npm-debug.log [test@mydb12c nCov-page]$

Why does it happen?