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

[BUG] npm update hangs for some dependencies for npm>=10.4.0 #7491

Closed
2 tasks done
charlesbjohnson opened this issue May 9, 2024 · 1 comment · Fixed by #7499
Closed
2 tasks done

[BUG] npm update hangs for some dependencies for npm>=10.4.0 #7491

charlesbjohnson opened this issue May 9, 2024 · 1 comment · Fixed by #7499
Labels
Bug thing that needs fixing Priority 1 high priority issue Release 10.x

Comments

@charlesbjohnson
Copy link

charlesbjohnson commented May 9, 2024

Is there an existing issue for this?

  • I have searched the existing issues

This issue exists in the latest npm version

  • I am using the latest npm

Current Behavior

After updating NPM from 10.2.4 to 10.5.2, I noticed that npm update was hanging when updating a specific dependency in one of my projects. I was able to reproduce the issue in a reduced environment here:

Please see the README there for more details.

I've confirmed the issue is present on:

  • Linux
  • macOS
  • Windows

And that the issue appears between [email protected] and [email protected].

Expected Behavior

npm update should not hang.

Steps To Reproduce

Please see the steps to reproduce in this repository:

TL;DR:

  • With npm >= 10.4.0...
  • Clone the repository...
  • Run npm install
  • Run npm update follow-redirects
  • Observe that npm update hangs

Environment

  • npm: 10.7.0
  • Node.js: 22.1.0
  • OS Name: Amazon Linux 2023 (also macOS 14.4.1 and Windows 10)
  • System Model Name: N/A
  • npm config:
; node bin location = /home/ec2-user/.asdf/installs/nodejs/22.1.0/bin/node
; node version = v22.1.0
; npm local prefix = /home/ec2-user/npm-cli-v10-bug
; npm version = 10.7.0
; cwd = /home/ec2-user/npm-cli-v10-bug
; HOME = /home/ec2-user
@charlesbjohnson charlesbjohnson added Bug thing that needs fixing Needs Triage needs review for next steps Release 10.x labels May 9, 2024
@milaninfy milaninfy added Priority 2 secondary priority issue and removed Needs Triage needs review for next steps labels May 9, 2024
@wraithgar wraithgar added Priority 1 high priority issue and removed Priority 2 secondary priority issue labels May 9, 2024
lukekarrys added a commit that referenced this issue May 9, 2024
@Tofandel
Copy link

Tofandel commented Oct 2, 2024

This issue is still happening it seems

Related
#4028

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug thing that needs fixing Priority 1 high priority issue Release 10.x
Projects
None yet
Development

Successfully merging a pull request may close this issue.

4 participants