-
Notifications
You must be signed in to change notification settings - Fork 394
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
Error: spawn EINVAL #199
Comments
You can fix it by going to var spawnArgs = {
shell: true,
cwd: opt.cwd,
env: opt.env || process.env,
stdio: opt.stdio
} adding shell: true to the parameters. I seems like the folder was downloaded from this repo: https://github.com/mattdesl/spawn-npm-install. |
Thank you @SonoDavid for your help, it worked! |
Hi, I've got the same problem but with one exception: I don't have the note_modules folder :( |
Hey all, I've just changed a feature that may help fix this problem even when node version is >= 18. Unfortunately I don't have access to Windows right now to test. 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 |
Hi,
I'm really new to coding so please bare with me. :)
I just installed canvas-sketch and node.js. When I trying to create a new sketch with canvas-sketch i get:
Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:761:9)
at command (C:\Sketches\node_modules\spawn-npm-install\index.js:45:14)
at Array. (C:\Sketches\node_modules\install-if-needed\index.js:47:9)
at runSeries (C:\Sketches\node_modules\run-series\index.js:23:33)
at run (C:\Sketches\node_modules\install-if-needed\index.js:52:5)
at C:\Sketches\node_modules\read-closest-package\index.js:29:7
I'm running on:
Windows 11 Home
node v20.12.2
npm 10.5.0
Tried:
The suggestion in this post
Install globally, run with npx and --save-dev.
All attempts gives same result,
After searching a bit more i came across this post which talks about a security update to node. I wonder if this is what's causing the issue? If not how, can i get it to work?
The text was updated successfully, but these errors were encountered: