pnpm: Running install hangs
pnpm hangs when running a clean install. It also happens when I try to install a single, relatively large package (i. e. webpack or react).
After downloading some of the packages fairly quickly the command just hangs without any progress:
$ pnpm install webpack-dev-server@2.7.1
$ Resolving: total 250, reused 1, downloaded 242
I tried to limit the number of HTTP connections. It results in the hang happening much earlier:
$ pnpm install webpack-dev-server@2.7.1 --network-concurrency 1
$ WARN waiting for another installation to complete...
$ Resolving: total 13, reused 0, downloaded 13
I tried removing contents of ~./pnpm-store
.
I’m not using a VPN.
I used:
- pnpm version: 1.23.1
node -v
prints: v6.12.0- Linux
About this issue
- Original URL
- State: closed
- Created 7 years ago
- Reactions: 1
- Comments: 25 (10 by maintainers)
Commits related to this issue
- fix: a warning should be printed when the store is locked ref pnpm/pnpm#946 — committed to pnpm/package-store by zkochan 6 years ago
- fix: a warning should be printed when the store is locked ref pnpm/pnpm#946 — committed to pnpm/package-store by zkochan 6 years ago
- fix: a warning is printed when the store is locked ref #946 — committed to pnpm/pnpm by zkochan 6 years ago
Same issue with 2.23.1 on Linux. To reproduce, run
pnpm multi install
and press Ctrl+S to pause the process. Wait a few minutes, then press Ctrl+Q to resume.^ never finishes, even though no installation is in progress. Had to delete the directory in
${PNPM_STORE}/2/_locks
.updated node to 20.5 and it worked
6 years later… Insane
pnpm install
hangs indefintitelyOS: MacOS Ventura Arch: Apple M2 Max NodeVersion: 18.16.0
command:
pnpm install
stuck at:node version : v18.17.0 pnpm version: 8.6.9
I have a found a place where pnpm can silently hang:
https://github.com/pnpm/package-store/blob/359fe907a5d67ecb59da86249470013e121a180f/src/storeController/index.ts#L45-L48
When pnpm waits for a store lock, nothing is printed to the console.