mattdesl / color-wander

:art: Generative artwork in node/browser based on a seeded random
http://color-wander.surge.sh/
1.62k stars 147 forks source link

Error when trying to print a seed to output #7

Closed lukeholder closed 8 years ago

lukeholder commented 8 years ago
$ node print 879372
/Users/lh/Code/Playground/color-wander/lib/createFileRenderer.js:27
  fs.readFile(path.resolve(cwd, opt.backgroundSrc), (err, buffer) => {
                                                                  ^^
SyntaxError: Unexpected token =>
    at exports.runInThisContext (vm.js:73:16)
    at Module._compile (module.js:443:25)
    at Object.Module._extensions..js (module.js:478:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Module.require (module.js:365:17)
    at require (module.js:384:17)
    at Object.<anonymous> (/Users/lh/Code/Playground/color-wander/print.js:2:26)
    at Module._compile (module.js:460:26)
    at Object.Module._extensions..js (module.js:478:10)
mattdesl commented 8 years ago

You need the most recent version of Node.js to use this. I should probably list that in the Readme somewhere...

imvetri commented 8 years ago

@mattdesl as an alternative to have a recent node version, can this issue be handled by using babel ?

https://github.com/mattdesl/color-wander/blob/master/package.json#L38

mattdesl commented 8 years ago

Probably, yes, but since this is a proof of concept and not an actual library, I'm going to stick with a high Node requirement. :smile:

imvetri commented 8 years ago

I get it. :+1: