sveltejs / svelte-cli

Command line interface for Svelte
MIT License
105 stars 18 forks source link

Unexpected token `{` issue #3

Closed radutopala closed 7 years ago

radutopala commented 7 years ago
svelte --help
/usr/local/lib/node_modules/svelte-cli/bin.js:607
    const { sourceMap } = options;
          ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:387:25)
    at Object.Module._extensions..js (module.js:422:10)
    at Module.load (module.js:357:32)
    at Function.Module._load (module.js:314:12)
    at Function.Module.runMain (module.js:447:10)
    at startup (node.js:146:18)
    at node.js:404:3
radutopala commented 7 years ago

Closing, it was due to older nodejs version.

atefBB commented 7 years ago

Hey! I upgrade npm/node but still have this error : dfdfd Any ideas?

Ryuno-Ki commented 7 years ago

@atefBB A good start would be to tell, what Node version do you use ;-)

node --version