Closed alfred-011 closed 9 months ago
Also getting the same error - can get it to install all dependancies when using sudo
but then vscode seems to have permission issues editing the files created
You need to create a new NodeJS project and add canvas-sketch
to it. To do so, open up your terminal, and execute following commands:
mkdir your-dir
cd your-dir
npm init -y
npm install --save-dev canvas-sketch canvas-sketch-util
Now you can create a new sketch within that sub dir:
canvas-sketch index.js --new --open
And if you want to run it later:
canvas-sketch index.js --open
That should do the trick!
Thanks René 🙏