nuxt-community / koa-template

Starter template for Nuxt.js with KoaJS.
https://koa.nuxtjs.org
382 stars 62 forks source link

SyntaxError: Unexpected token ... #38

Closed moedong closed 6 years ago

moedong commented 6 years ago

When I enter “run npm dev”,Console display:

DONE Compiled successfully in 655ms 11:59:05

E:\node\koa-nuxt\node_modules_nuxt@1.4.0@nuxt\lib\core\middleware\nuxt.js:72 const policies = this.options.render.csp.policies ? {...this.options.rende r.csp.policies} : null ^^^ SyntaxError: Unexpected token ... at createScript (vm.js:53:10) at Object.runInThisContext (vm.js:95:10) 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.require (module.js:498:17) at require (internal/module.js:20:19) at Object. (E:\node\koa-nuxt\node_modules_nuxt@1.4.0@nuxt\lib\co re\renderer.js:19:24)

chanlito commented 6 years ago

Can you tell us what's your node.js version?

moedong commented 6 years ago

my node.js version is too low. i update node.js to version 8.11.1. it's ok now,Thanks