mattdesl / canvas-sketch

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

Can't create new folder with canvas #161

Open demarchigo opened 2 years ago

demarchigo commented 2 years ago

Hi, once I use te command canvas-sketch sketch-01.js --new there is not output to it.

Also, when I followed a main instruction in this forum that tells us to use this command: npx canvas-sketch src/sketch.js --new --open the scr is created but the .js isn't. Does anyone knows how to solve this? Thanks!

Also, when I installed canvas, I get several warning messages telling me the command is deprecated, but I'm not sure that is the cause.

stellaship93 commented 2 years ago

Hi, I have the same problem as you. I try this one and it works!

mattdesl commented 2 years ago

Can you try to follow the steps in this comment and let me know if you have issues?

https://github.com/mattdesl/canvas-sketch/issues/96#issuecomment-1231548822

robertfromyourcastle commented 1 year ago

Hi @mattdesl, I have the same problem and I tried every single option in the said comment and in the whole #96 discussion and when I try to create the .js it does nothing. No output whatsoever, therefore I have no error message to on from here or annything else left in my tool box to try. I hope you can help me, I'd be very thankful!

musangowope commented 1 year ago
  • canvas-sketch (your-js-name.js) -- Also having not output atm. I tried this canvas-sketch (your-js-name.js) --output=./tmp/ but it didnt work

@mattdesl Im using version "canvas-sketch": "^0.7.6" on a mac m1

NelsonElias commented 8 months ago

2024 and i have the same problem, i execute the next command "npx canvas-sketch-cli sketch.js --new --open" and nothing happend.

mrmeinfs commented 6 months ago

UPDATE: I attempted to open a separate js file and issued the $ canvas-sketch --output=outputfolder

THAT one^ worked fine. And then I looked into the original folder that I was having trouble with--and guess what, the new output folder had been created, including the saved PNG files.

original comment:

I couldn’t find the png outputted files anywhere. And when I add —output=outFolder , no folders are created. (It’s 03.20.2024).