Automagically use the correct version of node
Project description
NVM Shim
Automagically use the correct version of node with nvm exec
functionality.
No more
nvm use
This will use existing .nvmrc
file, falling back to the nvm alias default
version if no config detected.
Installation
Pip
pip install nvshim
Build
Clone project repository
git clone git@github.com:iamogbz/nvshim.git
Pip install python project
pip install nvshim/
Or you can manually build and run the installer
Install project dependencies
make install
Build distributable binaries
make build
Install shim and configure shell
env NVSHIM_DIR=~/.nvshim PROFILE=~/.bash_profile dist/installer
Or to configure multiple shell profiles simultaenously
dist/installer ~/.nvshim ~/.bash_profile ~/.config/fish/config.fish
Configuration
Reads all configuration from the environment.
NVM_DIR
Relies on nvm being installed and configured correctly.
NVSHIM_AUTO_INSTALL
Set to 1
or true
to auto install specified version of node if not installed by nvm
.
NVSHIM_VERBOSE
Set to 1
or true
to show more information on the shimmed node process.
Otherwise set to 0
or false
or nothing.
Contribution
All forms of contribution welcome, please see guide.
make install
make tests
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.