mattdesl / canvas-sketch

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

--new command hangs #126

Open mckoss opened 2 years ago

mckoss commented 2 years ago

I've seen this work in the past, but now it does not.

$ canvas-sketch sketch04 --new

This hangs and I have to CTRL-C to stop the command.

I'm running on Windows 10 in Bashrc.

I note that a sketches subdirectory is created - but no file is placed within it.

fnistri commented 2 years ago

Having same issue. Node version is v14.16.1

EDIT: using Visual Studio Code terminal works like charm. Had the issue using Git for Windows as terminal

marcelino-borges commented 1 year ago

Having same issue. Node version is v14.16.1

EDIT: using Visual Studio Code terminal works like charm. Had the issue using Git for Windows as terminal

Dude! That's it! Saved me! running canvas-sketch-cli sketch.js --new --open or npx canvas-sketch-cli sketch.js --new --open

Neither work.

Running canvas-sketch-cli sketch.js --new --open (even though I have installed globally the pkg, also doesn't work.

The only thing that works is npx canvas-sketch-cli sketch.js --new --open from VS Code terminal! ha!