- Notifications
You must be signed in to change notification settings - Fork0
🍄 Automagically use the correct version of node with nvm
License
iamogbz/nvshim
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
Automagically use the correct version of node withnvm exec
functionality.
No more
nvm use
This will use existing.nvmrc
file, falling back to thenvm alias default
version if no config detected.
pip install nvshim
pip install git+git://github.com/iamogbz/nvshim.git
Reads all configuration from the environment.
Relies onnvm
being installed and configured correctly.
Set to1
ortrue
to auto install specified version of node if not installed bynvm
.
Set to1
ortrue
to show more information on the shimmed node process.
Otherwise set to0
orfalse
or nothing.
To allow the
nvshim
installednode
shim work in all directories, you'll need to stop sourcingnvm.sh
in your shell rc i.e.bash_profile
,zshrc
etc.- Just comment out the
source /Users/me/.nvm/nvm.sh
in your shell startup script. This is optional and preventsnvm
from taking control of your shell path on launch. - With
nvm
shimmed,nvm use
commands do not have any effect on the shell, thenode
version is already always gotten from the config automatically.
- Just comment out the
The scope of this project only shims the
node
,npm
,npx
andnvm
binaries. Any globally installed modules are not automatically shimmed.- It is still easy to run a specific global bin e.g.
npx eslint
will alway run the version ofeslint
installed via thenode
version for the current shell. - Indicate your interest in having this tool shim all binaries installed via node by leaving a commenthere.
- It is still easy to run a specific global bin e.g.
All forms of contribution welcome, please seeguide.
make install
make tests a="--snapshot-update"
About
🍄 Automagically use the correct version of node with nvm