{"library":"nave","title":"Nave: Node Virtual Environments","description":"Nave (Node Virtual Environments) is a command-line tool designed for managing multiple Node.js versions and their associated global npm package installations. It operates by spawning isolated subshells, allowing users to switch Node.js versions and their global npm environments on a per-session or per-project basis without permanently altering system-wide shell configurations like `.bashrc` or `.profile`. As of version 3.5.6, Nave functions primarily as a Bash script, differentiating it from Node.js-based version managers. Its installation can be achieved by simply downloading the `nave.sh` script or via a global npm installation, which essentially symlinks the script. The project's release cadence is irregular, reflecting maintainer-driven updates rather than a fixed schedule. A key advantage is its lightweight nature and reliance on standard shell features for environment isolation.","language":"javascript","status":"active","last_verified":"Sun Apr 19","install":{"commands":["npm install nave"],"cli":{"name":"nave","version":null}},"imports":[],"auth":{"required":false,"env_vars":[]},"quickstart":{"code":"# Install nave by downloading the script (recommended for initial setup)\ncurl https://raw.githubusercontent.com/isaacs/nave/main/nave.sh > /usr/local/bin/nave\nchmod 0755 /usr/local/bin/nave\n\n# List available remote Node.js versions\nnave ls-remote\n\n# Install a specific Node.js version and automatically switch to a subshell using it\nnave use 18.17.1\n\n# Verify the active Node.js and npm versions within the subshell\nnode -v\nnpm -v\n\n# Install a global npm package within this specific Node.js environment\nnpm install -g yarn\n\n# Exit the nave subshell to revert to the previous Node.js environment\nexit\n\n# Install an LTS version under a named environment\nnave use my-project-env lts/hydrogen\n\n# Enter the named environment later\nnave use my-project-env\n\n# List locally installed Nave environments and versions\nnave ls","lang":"javascript","description":"This quickstart demonstrates the installation of the Nave shell script, listing remote Node.js versions, installing and switching to a specific version within a temporary subshell, installing a global npm package, and managing named Node.js environments. Note that these are shell commands, not JavaScript code, executed in the context of Node.js development.","tag":null,"tag_description":null,"last_tested":null,"results":[]},"compatibility":null}