fregante/chrome-webstore-upload-cli

Syntax Error?

saiichihashimoto opened this issue · 3 comments

No matter how I run this thing, I get a syntax error:

const { green, red } = require('chalk');
      ^

SyntaxError: Unexpected token {
    at exports.runInThisContext (vm.js:53:16)
    at Module._compile (module.js:413:25)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)
    at startup (node.js:118:18)
    at node.js:952:3

Hey @saiichihashimoto,

Looks like you're running a version of node that isn't supported by this package. The minimum npm version is specified in the docs.

If you need to use this on an older version of node, it's likely possible using the babel-node CLI provided by the Babel project.

My node version is v4.1.2