react-build-tutorial icon indicating copy to clipboard operation
react-build-tutorial copied to clipboard

step7 跑步起来

Open zzlw opened this issue 6 years ago • 3 comments

[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

zzlw avatar Aug 22 '17 14:08 zzlw

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

xieqingtian avatar Aug 22 '17 14:08 xieqingtian

在 2017年8月22日,下午10:47,sundaypig <[email protected] mailto:[email protected]> 写道:

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

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/sundaypig/react-build-tutorial/issues/1#issuecomment-324049806, or mute the thread https://github.com/notifications/unsubscribe-auth/AcPyr3eQ9y7KWkiBsdhjPk3KcYVH1HGnks5sauoHgaJpZM4O-ufU.

V7.5.0

zzlw avatar Aug 23 '17 01:08 zzlw

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

xieqingtian avatar Aug 23 '17 01:08 xieqingtian