Skip to content

Error: spawn EINVAL #199

@pavel-101

Description

@pavel-101

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions