4 ms·
I use https://pnpm.io https://pnpm.io whenever possible. It has many benefits, the main one is that the node modules are symlinked to one big repo in your home
by armchairhacker 3y ago
I use https://pnpm.io https://pnpm.io whenever possible. It has many benefits, the main one is that the node modules are symlinked to one big repo in your home directory, so there isn’t nearly as much duplication.
- rpastuszak 3y agoYup, same here. I’ve saved 40gb of data by recursively removing all node_modules directories from my Mac and replacing npm with pnpm. I did notice small issues with some libraries (react testing library IIRC)
- paulddraper 3y ago*hard linked
- akoboldfrying 3y agoCurious whether this works on Windows? Symlinks are strange there (though hard links work fine on NTFS).
- armchairhacker 3y agoIt works. I think the only issue is that you may need to run `pnpm.exe` instead of `pnpm` (or I just installed it incorrectly. Installing on Windows is a bit tougher, but I haven't experienced issues with the symlinks).
- otteromkram 3y agoIf you don't want to risk adding something nefarious to your Google history, DuckDuckGo is a nice alternative. As my ol' grandpappy used to say, "Why wonder? Let's go search the Internets!"
- akoboldfrying 3y agoI'm not sure how to interpret this, other than as an elaborately snarky way of saying "Why don't you google the answer yourself, you lazy bum?"
- lifthrasiir 3y agoIt works, as long as you put your source code and the `.pnpm-store` folder to the same drive.
- thekevinscott 3y agoAnother vote for pnpm. Was introduced at work and it's a game changer. The monorepo support (via "workspace:*") is absolutely clutch too.