Lightweight nvm alternative
Clone the repo and put the nodev executable in your PATH.
git clone https://github.com/peterszarvas94/nodev.git
cd nodev
chmod +x nodev
sudo cp nodev /usr/local/bin/Add $HOME/.nodev/current to your PATH in your shell profile:
Bash:
echo 'export PATH="$HOME/.nodev/current:$PATH"' >> ~/.bashrc
source ~/.bashrcZsh:
echo 'export PATH="$HOME/.nodev/current:$PATH"' >> ~/.zshrc
source ~/.zshrcFish:
echo 'set -gx PATH $HOME/.nodev/current $PATH' >> ~/.config/fish/config.fish
source ~/.config/fish/config.fishnodev install 18.17.0
nodev install v20.8.0nodev use 18.17.0nodev listnodev currentnodev remove 18.17.0- macOS
- Linux
- Windows WLS
- Automatically detects your OS and architecture
- Downloads Node.js binaries from the official distribution
- Stores versions in
$HOME/.nodev/versions/ - Creates symlinks in
$HOME/.nodev/current/for the active version
The code in this repo was created with the help of AI models.