-
Notifications
You must be signed in to change notification settings - Fork 397
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
Comments
Unusual as I’m typically using it from newer versions (on macOS). Are you on windows? |
Yes I am. I've seen it reported in 2 of the other issues that were open recently as well. #201 (comment) |
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 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 |
Works now. You can reclose this thread. I commented back on another thread. |
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+.
The text was updated successfully, but these errors were encountered: