nuxt-community / starter-template

DEPRECATED: use create-nuxt-app instead
https://github.com/nuxt-community/create-nuxt-app
MIT License
607 stars 330 forks source link

when I run npm run dev show an error #61

Closed erbing closed 6 years ago

erbing commented 6 years ago
E:\github\nuxtJs\node_modules\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: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 Module.require (module.js:513:17)
    at require (internal/module.js:11:18)
    at Object.<anonymous> (E:\github\nuxtJs\node_modules\nuxt\lib\core\renderer.
js:19:24)
This question is available on Nuxt.js community (#c39)
erbing commented 6 years ago

E:\github\nuxtJs>node -v
v8.2.0

E:\github\nuxtJs>npm -v
5.3.0
dokudoki commented 6 years ago

I have the same issue.

UPDATE: @erbing Seems like you need node version 8.6.0 or higher.

erbing commented 6 years ago

WOW, it really worked out, thx !!!

erbing commented 6 years ago

@tyuwan