sveltejs / svelte-cli

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

Node.js version #12

Closed jcubic closed 7 years ago

jcubic commented 7 years ago

Which version of Node is required, I have version v4.2.6 and I have error:

/usr/local/lib/node_modules/svelte-cli/bin.js:610
        const { sourceMap } = options;
              ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:374:25)
    at Object.Module._extensions..js (module.js:417:10)
    at Module.load (module.js:344:32)
    at Function.Module._load (module.js:301:12)
    at Function.Module.runMain (module.js:442:10)
    at startup (node.js:136:18)
    at node.js:966:3
jcubic commented 7 years ago

Switch to v6.9.4 from nvm and it's working.

Rich-Harris commented 7 years ago

FWIW we intend to get Node 4 support working — there's an issue for it here https://github.com/sveltejs/svelte/issues/109