[BUG] <Freezes during npm install>
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
Solution: [BUG] <Freezes during npm install>
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.
Trust Score
3 verifications
- 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
Sign in to verify this fix
Environment
Submitted by
Alex Chen
2450 rep