Re:pnpm: Fast, disk space efficient package manager for Java...
by yewenjie on Tuesday April 05, 2022 @11:21AM
(#30920166)
pnpm is awesome except when it does not work - which happens very rarely but it is a nightmare to debug. For all the other times, it is way faster and lightweight than npm.
[ Parent
| on HN ]
Re:pnpm: Fast, disk space efficient package manager for Java...
by scambier on Tuesday April 05, 2022 @11:27AM
(#30920245)
I was unable to use pnpm with a project that used Electron (~2 years ago), IIRC because some spawned process was incompatible with symlinks. It's the only time it caused me trouble though, it's indeed much faster than npm. I'd love to use it at work too.
Re:pnpm: Fast, disk space efficient package manager for Java...
by zkochan on Tuesday April 05, 2022 @12:58PM
(#30921548)
In any cases where pnpm doesn't work, you may set the node-linker=hoisted option and it will work:
https://pnpm.io/npmrc#node-linker
With node-linker=hoisted, pnpm creates a traditional hoisted (aka flat) node_modules, without using symlinks.