Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

global package directory with symlinks to local node_modules #1

Open
happysalada opened this issue May 19, 2023 · 1 comment
Open

Comments

@happysalada
Copy link

Hey, thank you for the awesome package manager!
I have a suggestion, but I would like to check your thoughts on the idea before making a full blown RFC.

The idea would be to have a global folder containing all the packages, and the node_modules folder on different projects would only contain symlinks to the global directory.
pnpm does this by default, and in a more general sense, this is the key idea behind the nix package manager.
The one problem it solves is having huge node_modules directories when you are doing several projects and having to refetch packages that you already have on your system.
I completely understand that this is quite an undertaking, but it would be an awesome feature to have.

If you like this, I'm happy to provide more details and start an RFC.

@mon-jai
Copy link

mon-jai commented Jun 19, 2023

+1 for this.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants