Static GitHub Issues

[36] Unexpected token nuxt:3

prev: Custom error pages
next: Lazy loading

Hi today i try nuxt by running this command

vue init nuxt/starter nuxt
cd nuxt
yarn install
npm run dev

And getting this error

$ npm run dev

> nuxt@1.0.0 dev /home/ferri/Developments/web/nuxt
> nuxt

/home/ferri/Developments/web/nuxt/node_modules/nuxt/bin/nuxt:3
const { join } = require('path')
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:373:25)
    at Object.Module._extensions..js (module.js:416:10)
    at Module.load (module.js:343:32)
    at Function.Module._load (module.js:300:12)
    at Function.Module.runMain (module.js:441:10)
    at startup (node.js:139:18)
    at node.js:974:3

This is my system

$ npm --version
3.10.9

$ yarn --version
0.15.1

OS Freya / Ubuntu 14.04 64 bit

Thanks

<!--cmty--><!--cmty_prevent_hook--><div align="right"><sub><em>This bug report is available on <a href="https://nuxtjs.cmty.io">Nuxt.js</a> community (<a href="https://nuxtjs.cmty.io/nuxt/nuxt.js/issues/c32">#c32</a>)</em></sub></div>