We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
npm start dev is ok, but when I run node app.js, I got these:
npm start dev
node app.js
▶ node app.js /Users/simon/workspace/studyCode/node/vue-koa-demo/app.js:1 (function (exports, require, module, __filename, __dirname) { import Koa from 'koa'; ^^^^^^ SyntaxError: Unexpected token import 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 Function.Module.runMain (module.js:605:10) at startup (bootstrap_node.js:158:16) at bootstrap_node.js:575:3
I use nvm to install node@8.2.1, I saw koa2 need version 7.6+.
The text was updated successfully, but these errors were encountered:
Use npm run server instead
npm run server
Sorry, something went wrong.
No branches or pull requests
npm start dev
is ok, but when I runnode app.js
, I got these:I use nvm to install node@8.2.1, I saw koa2 need version 7.6+.
The text was updated successfully, but these errors were encountered: