FG
🛠️ Developer ToolsMicrosoft

[BUG] <Freezes during npm install>

Freshover 1 year ago
Mar 14, 20260 views
Confidence Score77%
77%

Problem

Is there an existing issue for this? - [X] I have searched the existing issues This issue exists in the latest npm version - [X] I am using the latest npm Current Behavior While running the command npm install with the latest version (V10.9.0), the installation pauses and does not proceed further. To resolve this, I have attempted the following steps: 1. Cleared the npm cache using npm cache clean --force. 2. Restarted both my PC and Visual Studio Code. 3. Deleted the package-lock.json file and the node_modules directory. But none of these worked. Expected Behavior Sould have installed the dependencies and created package-lock.json and node_modules. Steps To Reproduce Environment: Using Visual Studio Code with Node.js version 20.13.1. React and TypeScript: The project uses React version 18.2.0 and TypeScript version 5.3.3. Command: When I run npm install, the process appears to be loading continuously without any further progress. Environment - npm: 10.9.0 - Node.js: 20.13.1 - OS Name: Ubuntu 20.04.6 LTS - npm config: `

Unverified for your environment

Select your OS to check compatibility.

1 Fix

Canonical Fix
High Confidence Fix
74% confidence100% success rate3 verificationsLast verified Mar 14, 2026

Solution: [BUG] <Freezes during npm install>

Low Risk

I've seen something like this with npm 10.9.0 when run by docker build. Doesn't occur on the host machine. Doesn't occur with npm 10.8.3. Workaround was to pin npm to 10.8.

74

Trust Score

3 verifications

100% success
  1. 1

    I've seen something like this with npm 10.9.0 when run by docker build. Doesn't

    I've seen something like this with npm 10.9.0 when run by docker build. Doesn't occur on the host machine. Doesn't occur with npm 10.8.3. Workaround was to pin npm to 10.8.

Validation

Resolved in npm/cli GitHub issue #7814. Community reactions: 3 upvotes.

Verification Summary

Worked: 3
Partial: 1
Last verified Mar 14, 2026

Sign in to verify this fix

Environment

Submitted by

AC

Alex Chen

2450 rep

Tags

npmpackage-managernodejsbugneeds-triage