https://github.com/factor18/hnvm
Hermetic Node Version Manager
https://github.com/factor18/hnvm
Last synced: over 1 year ago
JSON representation
Hermetic Node Version Manager
- Host: GitHub
- URL: https://github.com/factor18/hnvm
- Owner: factor18
- License: mit
- Created: 2021-04-02T22:12:28.000Z (about 5 years ago)
- Default Branch: main
- Last Pushed: 2022-07-12T05:28:33.000Z (almost 4 years ago)
- Last Synced: 2025-01-16T13:52:55.386Z (over 1 year ago)
- Language: Ruby
- Size: 8.79 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# 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