Skip to content

Default packages #39

Open
Open

Description

@ybonnefond

Hello and thanks for this very useful project!

Nvm has a feature to declare default packages when installing a new version.

If you have a list of default packages you want installed every time you install a new version, we support that too
Just add the package names, one per line, to the file $NVM_DIR/default-packages. 
You can add anything npm would accept as a package argument on the command line.
# $BUM_DIR/default-packages

rimraf
object-inspect@1.0.2
stevemao/left-pad

I haven't found any documentation on this, so I assumed it is not available, but It would be very nice to support this too ❤️

Activity

  1. changed the title [-]Default global packages[/-] [+]Default packages[/+] on Dec 14, 2025
  2. owenizedd commented on Dec 15, 2025

    @owenizedd
    Owner

    ah that's interesting, I can support this in my next free time :)

    That means the global packages needs to be scoped to specific version?

  3. ybonnefond commented on Dec 31, 2025

    @ybonnefond
    Author

    I believe nvm post-install the global package list whenever a new version of node is installed

    here the small doc about this feature on nvm

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

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions