Skip to content
New issue

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

step7 跑步起来 #1

Open
zzlw opened this issue Aug 22, 2017 · 3 comments
Open

step7 跑步起来 #1

zzlw opened this issue Aug 22, 2017 · 3 comments

Comments

@zzlw
Copy link

zzlw commented Aug 22, 2017

[email protected] start /Users/andy/Desktop/react-build-tutorial/step7

node ./server/server.js

/Users/andy/Desktop/react-build-tutorial/step7/server/server.js:37
router.get('*', async (ctx, next) => {
^
SyntaxError: Unexpected token (
at Object.exports.runInThisContext (vm.js:73:16)
at Module._compile (module.js:543:28)
at Object.Module._extensions..js (module.js:580:10)
at Module.load (module.js:488:32)
at tryModuleLoad (module.js:447:12)
at Function.Module._load (module.js:439:3)
at Module.runMain (module.js:605:10)
at run (bootstrap_node.js:418:7)
at startup (bootstrap_node.js:139:9)
at bootstrap_node.js:533:3
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! [email protected] start: node ./server/server.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] start script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR! A complete log of this run can be found in:
npm ERR! /Users/andy/.npm/_logs/2017-08-22T14_42_32_891Z-debug.log

@xieqingtian
Copy link
Owner

请问node版本是否是7以上的呢?

@zzlw
Copy link
Author

zzlw commented Aug 23, 2017 via email

@xieqingtian
Copy link
Owner

@zzlw 我下载下来试过了,是可以启动的啊

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants