Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

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.


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.


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.


Good to know, thanks!




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: