Skip to content

Package install hang forever on placeDep for some package #55871

@Bartheleway

Description

@Bartheleway

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)

Metadata

Metadata

Assignees

No one assigned

    Labels

    npmIssues and PRs related to the npm client dependency or the npm registry.wrong repoIssues that should be opened in another repository.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions