DEV Community

protium
protium

Posted on • Updated on

packages "cache" and symlink all the projects?

Hi everyone! I started to think about that question two months ago as I'm working in different projects and my 256Gb SSD is running out of space.

I know I can use npm link, but I'm looking for a package manager that can install a package only in one folder and then resolve required packages as symlinks into the working directory. E.g. npm-symlink install --save-dev electron

What do you think? Would be a good idea? I will give it a try with python.

Discussion (2)

Collapse
hoelzro profile image
Rob Hoelz

If I understand you right, I think that's what pnpm is meant to do?

Collapse
protium profile image
protium Author

That is exactly what I was looking for! I couldn't find it. Thanks Rob!