Skip to content

factor18/hnvm

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

HNVM: Hermetic Node Version Manager

Hermetically sealed versions of node.

Hermetically sealed node, npm, npx

  • Each app or package can define which version of node they depend on
  • Upgrades required by one package don't affect another
  • Each app or package can run the node version simultaneously

Inspired by https://github.com/Urbancompass/hnvm

Installation

$ bundle install
$ ruby install.rb

This will add npm, node, npx to to your global $PATH. And their versions will be selected in runtime based on the configuration.

Configuration

HNVM reads its configuration from one of the following places, in order from highest to lowest priority:

  • .hnvmrc file in the
  • .hnvmrc file at the root of git repo, if running in a git repo
  • .hnvmrc file in your home directory ~/.hnvmrc

The .hnvmrc files are key value pairs:

HNVM_NODE=15.13.0

Uninstallation

ruby uninstall.rb

License

MIT

About

Hermetic Node Version Manager

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published