mattdesl / canvas-sketch

[beta] A framework for making generative artwork in JavaScript and the browser.
MIT License
5.01k stars 393 forks source link

when trying to save in windows "Error: ENOENT" #105

Open ELI7VH opened 4 years ago

ELI7VH commented 4 years ago

running with npx canvas-sketch-cli sketch.js

and when i hit ctrl+s in the browser i get this error

[0215] 205ms      3.6MB (browserify)
[0215] 136ms         0B GET    200 /plane.js (middleware)

Error: ENOENT: no such file or directory, mkdir 'E:\'
ELI7VH commented 4 years ago

specifying a path with --output did the trick!

mattdesl commented 4 years ago

Thanks for the report. Maybe your default “Downloads” / “Home” env variable is wrong for whatever reason. See here for other fixes:

https://github.com/mattdesl/canvas-sketch/blob/master/docs/exporting-artwork.md#changing-the-output-folder