Skip to content

global package directory with symlinks to local node_modules #1

Open
@happysalada

Description

@happysalada

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions