spawn EINVAL

50 views
Skip to first unread message

Pascaliano

unread,
Jul 22, 2024, 3:57:37 PM7/22/24
to nodeGame

Hi everyone,

I'm trying to install nodeGame on my Windows machine, but I keep encountering an error during the installation process. I'm using Node.js version 20.15.1 and nodeGame version 7.1.0. The installation directory is C:\Users\alupe\Downloads\nodegame-v7.1.0.

Here's the error message I'm seeing:

node version: v20.15.1
nodeGame version: v7.1.0
install directory: C:\Users\alupe\Downloads\nodegame-v7.1.0

Downloading and installing nodeGame packages.
Warning: A generic error occurred during the installation:

Error: spawn EINVAL
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at spawn (node:child_process:761:9)
    at execFile (node:child_process:351:17)
    at doInstall (C:\Users\alupe\Downloads\nodegame-installer.js:338:17)
    at checkParentNodeModules (C:\Users\alupe\Downloads\nodegame-installer.js:313:9)
    at Object.<anonymous> (C:\Users\alupe\Downloads\nodegame-installer.js:277:6)
    at Module._compile (node:internal/modules/cjs/loader:1358:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1416:10)
    at Module.load (node:internal/modules/cjs/loader:1208:32)
    at Module._load (node:internal/modules/cjs/loader:1024:12)

I've tried running the installation with administrative privileges, updating npm, and clearing the npm cache, but the issue persists. Any advice on how to resolve this would be greatly appreciated!

Thanks in advance!

Stefano Balietti

unread,
Jul 22, 2024, 4:02:11 PM7/22/24
to node...@googlegroups.com

Hei there,

Sorry to hear about your troubles with the installation.

Which shell/terminal are you using for the install?

In general, I would recommend to try to install the @dev version.

Let me know. Cheers,
Stefano


--
You received this message because you are subscribed to the Google Groups "nodeGame" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodegame+u...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/nodegame/8cf30b7a-24ec-4c2d-bc7c-4b2a94adcd33n%40googlegroups.com.

Don Morrison

unread,
Jul 22, 2024, 4:22:03 PM7/22/24
to node...@googlegroups.com

Here’s the error message I’m seeing:

node version: v20.15.1
nodeGame version: v7.1.0
install directory: C:\Users\alupe\Downloads\nodegame-v7.1.0

Downloading and installing nodeGame packages.
Warning: A generic error occurred during the installation:

Error: spawn EINVAL
at ChildProcess.spawn (node:internal/child_process:421:11)
at spawn (node:child_process:761:9)
at execFile (node:child_process:351:17)

I’m afraid I know nothing about Windows, but someone I know who uses it, I think had a similar issue with a completely different node.js thing, and eventually narrowed it down to an unfortunate interaction with his Windows anti-virus stuff. Don’t know if that will help you, but it seems worth mentioning.



Don Morrison df...@cmu.edu
“The most dangerous enemy of a better solution is
an existing codebase that is just good enough.”
– Eric Raymond, “Plan 9: The Way the Future Was”

shakty

unread,
Jul 24, 2024, 3:58:33 AM7/24/24
to nodeGame
Hi,

It seems that there are some backward-incompatible changes on Node 20.15 and Windows that create this error. I have patched the installer, and it should be working now. 

Please redownload the installer and try again.

Sorry for the trouble. Cheers,
Stefano 

Pascaliano

unread,
Jul 30, 2024, 4:34:41 PM7/30/24
to node...@googlegroups.com
I'm sorry I didn't reply at the moment, I used powershell and git.
With the patch it went smoothly, thank you very much.



--
You received this message because you are subscribed to the Google Groups "nodeGame" group.
To unsubscribe from this group and stop receiving emails from it, send an email to nodegame+u...@googlegroups.com.

Stefano Balietti

unread,
Jul 30, 2024, 4:39:09 PM7/30/24
to node...@googlegroups.com
Glad to hear.

If you installed the dev branch and know how to use git, you could switch to the v8 branch. It is not officially released,  but it contains several improvements and many (undocumented yet) new features. Most importantly, it includes several security updates.

The switch is a bit cumbersome now, because you need to switch to the v8 branch in each nodegame repo. It will be easier later.

Stefano

Reply all
Reply to author
Forward
0 new messages