pnpm: 'pnpm install' Too slow

Verify latest release

  • I verified that the issue exists in the latest pnpm release

pnpm version

8.7.6

Which area(s) of pnpm are affected? (leave empty if unsure)

Dependencies resolver, CLI, Lockfile

Link to the code that reproduces this issue or a replay of the bug

No response

Reproduction steps

  1. Create a react app using pnpm
  2. Run pnpm install
  3. Delete node_modules folder
  4. Run pnpm install again

Describe the Bug

After removing the ‘node modules’ directory, running ‘pnpm install’ again is very slow

Expected Behavior

Running ‘pnpm install’ again should be done very quickly

Which Node.js version are you using?

v16.20.2

Which operating systems have you used?

  • macOS
  • Windows
  • Linux

If your OS is a Linux based, which one it is? (Include the version if relevant)

No response

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Reactions: 16
  • Comments: 17 (1 by maintainers)

Most upvoted comments

It’s also slow on linux. I am on debian Debian GNU/Linux 12 (bookworm) and it used to be very fast earlier now its painfully slow. Takes like 4m 29.1s and it’s not even downloading stuff. But even if it was I have a fast consistent network speed of 200mbps so that is definitely not an issue.

image

Also listing my hardware incase: Intel® Core™ i5-10400 16.0 GiB

Edit: Just tried installing a single package even that took 2m 23s lol

image

I’m using pnpm 9.1.0 on a NVMe drive and still having the same problem. I’m running Fedora 40.

this also happens for me in 8.10.5

PS D:\coding\svelte\some-project> npm-check-updates -u -x re*
Using pnpm
Upgrading D:\coding\svelte\some-project\package.json
[====================] 32/32 100%

 @types/node  ^20.9.4  →  ^20.9.5

Run pnpm install to install new versions.
PS D:\coding\svelte\some-project> pnpm i
Packages: +2 -2
++--
Progress: resolved 436, reused 381, downloaded 1, added 2, done
    ├── ✕ unmet peer vite@^4.0.0: found 5.0.2
    └─┬ @sveltejs/vite-plugin-svelte-inspector 1.0.4
      └── ✕ unmet peer vite@^4.0.0: found 5.0.2

Done in 6m 51.4s

let me know if any more information is needed