-
Notifications
You must be signed in to change notification settings - Fork 154
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
NPM install hangs infinitely while installing isolated-vm
on Node 22.11.0
#506
Comments
Thank you for the detailed information. So there's two questions: why don't the prebuilt binaries work, and why does the build hang? This could help diagnose:
On my machine:
|
Good one, i will try that out next week in our docker build container and post the output here. |
@laverdet I tried it out just now, and i had to use the - -jobs 10 command to get past the install phase again. Then, the following command outputs this:
|
Is gcc too old? It might help to pin down the gcc version in github actions, see https://github.com/marketplace/actions/install-gcc. Gcc12 seems pretty cutting edge, maybe using 11 would support more distros. |
#507 is worth a try, or specifying an older ubuntu image could work. |
See related issue npm/cli#7900 (comment).
isolated-vm
version: 5.0.1I had a situation where installing
isolated-vm
(as optional dependency), causednpm install
to hang infinitely.I narrowed it down to this module by using
--foreground-scripts
.It would hang upon a
gcc
command while compiling native code. I'm not sure why the prebuilt binary was not used, as my architecture should allow for this (linux x64).The workaround that worked for me is setting
--jobs 10
so compilation of native code doesn't take all CPU cores.See https://github.com/nodejs/node-gyp?tab=readme-ov-file#command-options.
It's not a pretty solution, but it solved the issue for me.
My platform where this occurs:
Node version: 22.11.0
NPM version: 10.9.0 (downgrading to 10.3.0 as suggested in the linked thread didn't help for me though)
Platform: Linux, Dockerized, Amazon Linux 2023 base image
On a Windows or Mac based platform, i haven't ran into this issue though (same package.json).
Any ideas as to what could cause this? On node 20.18.0 (with
isolated-vm
4.x) i do not see this issue.The text was updated successfully, but these errors were encountered: