Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

canvas-sketch not compatible with node versions > 16.x #202

Closed
LucasMERN opened this issue Aug 20, 2024 · 4 comments
Closed

canvas-sketch not compatible with node versions > 16.x #202

LucasMERN opened this issue Aug 20, 2024 · 4 comments

Comments

@LucasMERN
Copy link

I've tried it with 18 and 20. both will seem to install the CLI but the commands do not work. This is not a huge deal as anyone can use nvm to switch back and forth but you will not be able to create a new project with Astro, Next, Vite, and probably others without Node 18+.

@mattdesl
Copy link
Owner

Unusual as I’m typically using it from newer versions (on macOS). Are you on windows?

@LucasMERN
Copy link
Author

LucasMERN commented Aug 20, 2024

Yes I am. I've seen it reported in 2 of the other issues that were open recently as well. #201 (comment)

@mattdesl
Copy link
Owner

I've just changed a feature that may help. Unfortunately I don't have access to Windows right now.

Can you try updating the CLI?

If you are using it globally:

npm i canvas-sketch-cli@1.15.0 --global

mkdir test-sketch
cd test-sketch
canvas-sketch sketch.js --new

Or if you are using it with npx:

mkdir test-sketch
cd test-sketch
npx canvas-sketch-cli@1.15.0 sketch.js --new

Or if you are using it with locally installed devDependency:

mkdir test-sketch
cd test-sketch
npm init -y

npm install canvas-sketch-cli@1.15.0 --save-dev
npx canvas-sketch sketch.js --new

@mattdesl mattdesl reopened this Aug 23, 2024
@LucasMERN
Copy link
Author

Works now. You can reclose this thread. I commented back on another thread.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants