Installation¶
npm (recommended)¶
This installs the nvb command globally and configures the shell hook automatically.
GitHub Releases¶
Download the latest release from GitHub Releases, extract it, and run the install script:
Quick Install (from source)¶
git clone https://github.com/marcosreuquen/node-version-bridge.git
cd node-version-bridge
bash install.sh
The script will:
- Copy
nvbto~/.local/share/nvb/ - Add
nvbto yourPATHin.zshrcor.bashrc - Add the auto-switching shell hook
- Create a default config file at
~/.config/nvb/config
Then restart your shell or run:
Shell Hook Setup¶
If you installed via npm or GitHub Releases manually, run:
This auto-detects your shell (zsh/bash), adds the hook line to your rc file, and prints a confirmation.
Alternatively, you can add the hook manually:
Manual Install¶
If you prefer full control:
Then add the hook to your shell config:
Verify¶
This checks for available version managers, version files in the current directory, and your configuration.
Uninstall¶
With the script¶
This removes installed files, PATH entry, shell hook, cache, and config directory.
Manual¶
- Remove the nvb lines from your
.zshrc/.bashrc(eval "$(nvb init ...)", PATH export, orsource ...nvb.zsh/nvb.bash) - Delete the install directory:
rm -rf ~/.local/share/nvb - Delete the config:
rm -rf ~/.config/nvb - Optionally delete the cache:
rm -rf ~/.cache/node-version-bridge
Requirements¶
- Bash ≥ 4.0
- Shell: Zsh or Bash
- One of the supported version managers