puter icon indicating copy to clipboard operation
puter copied to clipboard

Windows Error

Open vermashobhit1994 opened this issue 2 months ago • 3 comments

running below command

npm start

how to solve it?

[email protected] start npm run build:ts && node ./tools/run-selfhosted.js

[email protected] build:ts tsc

[BOOT/INFO] configuration F:\\artificial-intelligence\\mlproject\\agentic_AI\\my-node-server\\puter\\volatile\\config [BOOT/INFO] working directory F:\\artificial-intelligence\\mlproject\\agentic_AI\\my-node-server\\puter\\volatile\\runtime WORKERS ERROR: Preamble has not been built! Workers will not have access to puter.js To fix this cd into src/backend/src/worker and run npm run build node:internal/child_process:420 throw new ErrnoException(err, 'spawn'); ^

Error: spawn EINVAL at ChildProcess.spawn (node:internal/child_process:420:11) at spawn (node:child_process:786:9) at Kernel.run_npm_install (F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\Kernel.js:581:22) at Kernel.install_extern_mod_ (F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\Kernel.js:422:20) at async Promise.all (index 3) at async Kernel.install_extern_mods_ (F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\Kernel.js:285:30) at async Kernel._install_modules (F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\Kernel.js:168:9) at async F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\Kernel.js:139:13 at async F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\util\context.js:197:20 at async Context.arun (F:\artificial-intelligence\mlproject\agentic_AI\my-node-server\puter\src\backend\src\util\context.js:195:16) { errno: -4071, code: 'EINVAL', syscall: 'spawn' }

Node.js v22.18.0

vermashobhit1994 avatar Oct 15 '25 08:10 vermashobhit1994

Are you trying to run with or without puter workers? What's the expected end result here? If you aren't trying to use puter workers that specific "workers error" error can be safely ignored. This feature requires a cloudflare workers for platforms API key and dispatch namespace to be setup

ProgrammerIn-wonderland avatar Oct 16 '25 17:10 ProgrammerIn-wonderland

can you give me the output of git status

ProgrammerIn-wonderland avatar Oct 16 '25 18:10 ProgrammerIn-wonderland

This issue isn't related to workers but related to windows

ProgrammerIn-wonderland avatar Oct 25 '25 19:10 ProgrammerIn-wonderland

Do we have an update on this?

jelveh avatar Nov 28 '25 04:11 jelveh

I think it works now but I'll have to test again

ProgrammerIn-wonderland avatar Nov 28 '25 08:11 ProgrammerIn-wonderland

I encountered the same error today ( windows error)

https://github.com/user-attachments/assets/92745daa-8e8e-4bda-a758-6015fe79556a

ByteJoseph avatar Nov 28 '25 10:11 ByteJoseph