Skip to content
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

Package install hang forever on placeDep for some package #55871

Closed
Bartheleway opened this issue Nov 15, 2024 · 7 comments
Closed

Package install hang forever on placeDep for some package #55871

Bartheleway opened this issue Nov 15, 2024 · 7 comments
Labels
npm Issues and PRs related to the npm client dependency or the npm registry. wrong repo Issues that should be opened in another repository.

Comments

@Bartheleway
Copy link

Version

22.11.0 / 23.2.0

Platform

Linux 8bc1457235a1 5.15.153.1-microsoft-standard-WSL2 #1 SMP Fri Mar 29 23:14:13 UTC 2024 x86_64 GNU/Linux

Subsystem

Docker debian:sid-slim

What steps will reproduce the bug?

Create a docker image using

FROM debian:sid-slim:latest

ARG NODE_VERSION=22

RUN curl -fsSL https://deb.nodesource.com/setup_${NODE_VERSION}.x | bash - &&\
		apt-get install -y nodejs

RUN corepack enable

Then run it and try to install yamlinc package: npm install -g --loglevel silly yamlinc

The process hang forever on this step: npm silly placeDep node_modules/yamlinc/node_modules/unset-value/node_modules/has-value [email protected] OK for: [email protected] want: ^2.0.0

How often does it reproduce? Is there a required condition?

Depends on which package you want to install. Some works and some others like yamlinc fail every time.

What is the expected behavior? Why is that the expected behavior?

Install the package

What do you see instead?

Process hang forever on placeDep resolution.

Additional information

Working fine on node v21.7.3 and does not seems to be linked to npm version (always 10.9.0)

@avivkeller
Copy link
Member

avivkeller commented Nov 15, 2024

incorrect information
@nodejs/npm

@avivkeller avivkeller added the npm Issues and PRs related to the npm client dependency or the npm registry. label Nov 15, 2024
@avivkeller
Copy link
Member

(Ignoring the incorrect information above, i misunderstood the issue)

Is this only reproducible in Docker?

@Bartheleway
Copy link
Author

Yes I should have mentioned that I also tried directly one my computer and that everything was fine with node 21 & 22.

Maybe it is linked to filesystem or user permission (but I am root on docker).

@aduh95 aduh95 added the wrong repo Issues that should be opened in another repository. label Nov 15, 2024
@aduh95
Copy link
Contributor

aduh95 commented Nov 15, 2024

You should report this to npm if you're not able to reproduce without it.

@aduh95 aduh95 closed this as not planned Won't fix, can't repro, duplicate, stale Nov 15, 2024
@Bartheleway
Copy link
Author

So for you it is an issue related to npm package more than node even if the only difference in the scenarios is the node version?

@aduh95
Copy link
Contributor

aduh95 commented Nov 15, 2024

It might be caused by a bug within node, however without a repro we cannot investigate it. If you report it to npm, they should be able to assess whether they're doing something wrong or if it is indeed a bug with node

@Bartheleway
Copy link
Author

Bartheleway commented Nov 18, 2024

It seems to be linked to #55602 and also as some others reported it is working fine under [email protected]

The workaround for now is to add --libc=glibc to the npm install command. I hope this would help others and also that fix will soon be released.

Thanks for the help.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
npm Issues and PRs related to the npm client dependency or the npm registry. wrong repo Issues that should be opened in another repository.
Projects
None yet
Development

No branches or pull requests

3 participants