You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After using pnpm for a while, it's become unbearably slow. #7133
In this issue @zkochan mentioned, "pnpm is too slow is too broad","But with this title and description the issue just attracts people with different unrelated issues".After seeing this, I decided to delete all the node_modules directories installed via pnpm, as well as the .pnpm-store, and then ran Get-ChildItem -Recurse | Where-Object {$_.LinkType -eq 'HardLink'} in Windows PowerShell to ensure all pnpm hard links were cleaned up.
Deleting all node_modules folder and running pnpm store prune
The execution speed improved significantly afterwards. For example, with the store, pnpm install used to take over 30 minutes, but now, without the store, the first pnpm install only takes 6 minutes.
In this case, the slow speed was due to the impact of hard links. After a clean removal, the speed returned to normal.
Hopefully, this method will be helpful.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
After using pnpm for a while, it's become unbearably slow.
#7133
In this issue @zkochan mentioned, "pnpm is too slow is too broad","But with this title and description the issue just attracts people with different unrelated issues".After seeing this, I decided to delete all the
node_modules
directories installed via pnpm, as well as the.pnpm-store
, and then ranGet-ChildItem -Recurse | Where-Object {$_.LinkType -eq 'HardLink'}
in Windows PowerShell to ensure all pnpm hard links were cleaned up.I saw a discussion that offered a great method, and I would recommend doing it like this:
https://github.com/orgs/pnpm/discussions/4413
The execution speed improved significantly afterwards. For example, with the store,
pnpm install
used to take over 30 minutes, but now, without the store, the firstpnpm install
only takes 6 minutes.In this case, the slow speed was due to the impact of hard links. After a clean removal, the speed returned to normal.
Hopefully, this method will be helpful.
Beta Was this translation helpful? Give feedback.
All reactions