Open zzlw opened 7 years ago
请问node版本是否是7以上的呢?
在 2017年8月22日,下午10:47,sundaypig <notifications@github.com mailto:notifications@github.com> 写道:
请问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 我下载下来试过了,是可以启动的啊
mobx-demo@1.0.0 start /Users/andy/Desktop/react-build-tutorial/step7
/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! mobx-demo@1.0.0 start:
node ./server/server.js
npm ERR! Exit status 1 npm ERR! npm ERR! Failed at the mobx-demo@1.0.0 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