rnvm 0.3.0

Blazingly fast Node version manager
rnvm-0.3.0 is not a library.

Cargo Build & Test

RNVM - Rust Node Version Manager

A blazingly fast Node.js version manager written in Rust.

Features

  • Install multiple Node.js versions
  • Switch between versions easily
  • Manage your Node.js installations

Supported Platforms

  • Linux (x86_64)
  • macOS (Apple Silicon)

Installation

Install RNVM using Cargo:

cargo install rnvm

Make sure ~/.cargo/bin is in your PATH.

Then, download the shell script:

mkdir -p ~/.rnvm
curl -o ~/.rnvm/rnvm.sh https://raw.githubusercontent.com/jakewaldrip/rnvm/main/rnvm.sh

Setup

Add the following to your .zshrc (or equivalent shell config):

# Setup RNVM (Rust Node Version Manager)
export RNVM_DIR="$HOME/.rnvm"
[ -s "$RNVM_DIR/rnvm.sh" ] && \. "$RNVM_DIR/rnvm.sh"  # This loads rnvm

Then source your shell config:

source ~/.zshrc

Usage

Install a Node.js version

rnvm install <version>

Switch to a version

rnvm use <version>

Check current version

rnvm current

List installed versions

rnvm list

Remove a version

rnvm remove <version>

How it works

RNVM downloads Node.js binaries from the official Node.js website and manages them in the $RNVM_DIR directory. It modifies your PATH to use the selected version.