SIGN IN SIGN UP
nvm-sh / nvm UNCLAIMED

Node Version Manager - POSIX-compliant bash script to manage multiple active node.js versions

0 0 80 Shell

[New] `nvm install --offline`: install from cache without network access

Add `--offline` flag to `nvm install` that resolves versions using only locally installed versions and cached downloads. No network calls are made.

New helper functions `nvm_ls_cached` and `nvm_offline_version` scan `$NVM_DIR/.cache/bin/` for previously downloaded tarballs.
In offline mode, `nvm_download_artifact` returns cached tarballs directly without checksum verification or download attempts.
The curl/wget requirement is skipped when `--offline` is set.
Supports `--lts` via locally stored LTS alias files.
J
Jordan Harband committed
59bd32be6beac3c782e41d8ecbe9a69dc8c88462
Parent: 14d01c6