nvm

Developer ToolsMIT

Node Version Manager for POSIX shells.

Latest v0.41.0 · by nvm-shWritten in ShellWebsitenvm-sh/nvmRSS

Release activity

Release activity — 6 releases across 6 days in the last year. Each cell is one day; darker means more releases that day. Older weeks are hidden at this screen width.
AugSepOctNov
SundayNo releases on Aug 2, 2026No releases on Aug 9, 2026No releases on Aug 16, 2026No releases on Aug 23, 2026No releases on Aug 30, 2026No releases on Sep 6, 2026No releases on Sep 13, 2026No releases on Sep 20, 2026No releases on Sep 27, 2026No releases on Oct 4, 2026No releases on Oct 11, 2026No releases on Oct 18, 2026No releases on Oct 25, 2026No releases on Nov 1, 2026No releases on Nov 8, 2026No releases on Nov 15, 2026
MondayNo releases on Aug 3, 2026No releases on Aug 10, 2026No releases on Aug 17, 2026No releases on Aug 24, 2026No releases on Aug 31, 2026No releases on Sep 7, 2026No releases on Sep 14, 20261 release on Sep 21, 2026No releases on Sep 28, 2026No releases on Oct 5, 2026No releases on Oct 12, 2026No releases on Oct 19, 2026No releases on Oct 26, 2026No releases on Nov 2, 2026No releases on Nov 9, 2026No releases on Nov 16, 2026
TuesdayNo releases on Aug 4, 2026No releases on Aug 11, 20261 release on Aug 18, 2026No releases on Aug 25, 2026No releases on Sep 1, 2026No releases on Sep 8, 2026No releases on Sep 15, 2026No releases on Sep 22, 2026No releases on Sep 29, 2026No releases on Oct 6, 2026No releases on Oct 13, 2026No releases on Oct 20, 2026No releases on Oct 27, 2026No releases on Nov 3, 2026No releases on Nov 10, 2026
WednesdayNo releases on Aug 5, 2026No releases on Aug 12, 2026No releases on Aug 19, 2026No releases on Aug 26, 2026No releases on Sep 2, 2026No releases on Sep 9, 2026No releases on Sep 16, 2026No releases on Sep 23, 2026No releases on Sep 30, 2026No releases on Oct 7, 2026No releases on Oct 14, 2026No releases on Oct 21, 2026No releases on Oct 28, 20261 release on Nov 4, 2026No releases on Nov 11, 2026
ThursdayNo releases on Aug 6, 2026No releases on Aug 13, 2026No releases on Aug 20, 2026No releases on Aug 27, 2026No releases on Sep 3, 2026No releases on Sep 10, 2026No releases on Sep 17, 2026No releases on Sep 24, 2026No releases on Oct 1, 2026No releases on Oct 8, 2026No releases on Oct 15, 2026No releases on Oct 22, 2026No releases on Oct 29, 2026No releases on Nov 5, 2026No releases on Nov 12, 2026
FridayNo releases on Aug 7, 2026No releases on Aug 14, 2026No releases on Aug 21, 2026No releases on Aug 28, 2026No releases on Sep 4, 2026No releases on Sep 11, 2026No releases on Sep 18, 2026No releases on Sep 25, 2026No releases on Oct 2, 2026No releases on Oct 9, 2026No releases on Oct 16, 2026No releases on Oct 23, 2026No releases on Oct 30, 2026No releases on Nov 6, 2026No releases on Nov 13, 2026
SaturdayNo releases on Aug 8, 2026No releases on Aug 15, 2026No releases on Aug 22, 2026No releases on Aug 29, 2026No releases on Sep 5, 2026No releases on Sep 12, 2026No releases on Sep 19, 2026No releases on Sep 26, 2026No releases on Oct 3, 2026No releases on Oct 10, 2026No releases on Oct 17, 2026No releases on Oct 24, 2026No releases on Oct 31, 2026No releases on Nov 7, 2026No releases on Nov 14, 2026

6 releases in the last year

Changelog

v0.41.0

Latest
New Stuff
  • select versions by category: alpha, lts, non-lts, iojs; exclude alphas by default
  • nvm alias: store --lts and --lts=<name>
  • record every node version's LTS status
  • nvm ls-remote: annotate versions with the node alias and local aliases (#3920)
  • add nvm_has_italics, to detect terminal italics support via terminfo
Bug Fixes
  • nvm: treat a bare --only like an empty --only=
  • nvm_ls_remote, nvm_remote_version: match dots between version components literally (#3982)
  • nvm_nvmrc_invalid_msg: respect --silent
  • nvm_download: pass $NVM_AUTH_HEADER to curl and GNU Wget in a config file, not as an argument
  • nvm_ls_remote_index_tab, nvm_remote_version, nvm_ls_cached: pass the version pattern to grep with -e
  • nvm_die_on_prefix: never let a project .npmrc choose which npmrc file --delete-prefix edits
  • nvm_download_artifact: only put an archive in the cache once its checksum has passed
  • nvm_normalize_lts, nvm_ls_remote_index_tab: keep untrusted text out of shell arithmetic and LTS aliases
  • nvm install: keep nvm options after the version out of ./configure (#3981)
  • nvm install: apply --alias, --default and --save after every install (#3981)
  • nvm install: don't leave NVM_NO_PROGRESS set in the caller's shell
  • nvm_get_default_packages: ignore CRLF line endings (#3979)
  • install.sh: ignore commented-out profile source lines (#3860)
  • nvm_print_implicit_alias: keep STABLE bound, and STABLE and UNSTABLE independent of the caller (#3975)
  • nvm_ls: treat a version dir with only hidden entries as empty (#3974)
  • ls: list versions whose directory is a symlink (#3973)
  • nvm_die_on_prefix: check a nonexistent prefix on Windows (#3972)
  • install.sh: only write $HOME when $NVM_DIR is inside it (#3962)
  • nvm_is_version_or_alias: reject uppercase LTS names in every locale
  • nvm_process_nvmrc: don't show the content of a symlinked .nvmrc
  • nvm_write_nvmrc: don't write through a symlinked .nvmrc
  • nvm_ls: match NVM_DIR literally
  • nvm use: do not pile up PATH entries in nested sessions (#3959)
  • nvm_filter_installed_versions, nvm_filter_lts_versions, nvm_record_lts_status, nvm_get_default_packages: keep backslashes in NVM_DIR paths
  • nvm_strip_path: preserve literal backslashes in NVM_DIR (#3958)
  • nvm_find_up, nvm_find_project_dir: stop at a Windows drive root instead of looping forever (#3968)
  • nvm_ls_cached: match dots in the version literally, and ignore a trailing dot (#3961)
  • install.sh: nvm_check_global_modules: don't run a Windows npm under WSL (#3966)
  • nvm: ignore option variables set by the caller
  • nvm reinstall-packages: don't print VERSION='' in zsh
  • nvm_alias, nvm_ls_remote_index_tab, nvm use: return the exit code of a failed check
  • nvm_print_versions: don't mark N/A as installed
  • nvm_ls: no blank line before system when nothing is installed
  • nvm_print_versions: widen the version column for long versions
  • nvm_ls: match a prerelease only up to a .
  • nvm_ls: list every installed prerelease, in semver order
  • nvm uninstall: only remove aliases that point at the uninstalled version
  • nvm_ls_cached: only match whole version numbers
  • nvm debug: don't let the shell read stdin when asked for its version
  • nvm_download: with GNU Wget, follow only same-origin redirects when sending $NVM_AUTH_HEADER
  • nvm_download: only send $NVM_AUTH_HEADER to URLs under a mirror it applies to
  • install.sh: don't let a git repository in the current directory affect git ls-remote
  • nvm_remote_versions: only consult io.js's version list for majors 1 through 3
  • nvm_remote_versions: place io.js versions by major version, not at the literal v4.0.0
  • nvm.sh: detect NVM_DIR without $0/$_; fall back to the default install location instead of the working directory
  • nvm_process_nvmrc_content: reject control characters
  • nvm_download_artifact, nvm debug: mask credentials in mirror URLs when printing them
  • nvm_install_binary, nvm_install_source: only use a tarball that nvm_download_artifact put in the cache
  • nvm_download, nvm_get_latest, install.sh: pass -q to curl first, so .curlrc is ignored again
  • nvm_is_version_installed: fail when nvm_version_path fails
  • nvm use, nvm-exec: stop option parsing at --
  • nvm install: validate an inherited NVM_MAKE_JOBS like -j
  • nvm_is_natural_num: reject anything but digits
  • nvm_remote_version: match the requested version as a whole version component
  • install.sh: a failed script-method download no longer clobbers the install or reports success
  • nvm_ls: match the version pattern literally
  • bash_completion: list alias and version names without expanding them
  • nvm_sanitize_auth_header: strip newlines, so wrapped base64 credentials work
  • nvm_cd: bypass a user-defined cd function (#3836)
  • nvm use: handle regex-special characters in $NVM_DIR (#3939)
  • install.sh: start a new line before appending to a profile that does not end with one (#3952)
  • Handle filesystem identity when checking path containment (#3921)
  • nvm alias: do not drop output from background jobs on bash 3.2
  • nvm: do not change or export the caller's IFS
  • nvm install: do not remove the caller's TMPDIR after a failed download
  • nvm exec/nvm run: do not treat filenames with digits as versions
Refactors
  • install.sh: check profile lines through one comment-aware helper (#3976)
Robustness
  • nvm_nvmrc_invalid_msg: only show an excerpt of the parsed content
  • install.sh, nvm uninstall: pass the version to grep with -e
Performance
  • nvm_print_implicit_alias: classify implicit aliases in one awk pass (#3980)
  • nvm_is_installed_exact_version: also take the fast path for an exact prerelease
  • nvm_version_greater, nvm_version_greater_than_or_equal_to: avoid awk where possible (#3949)
  • nvm_is_valid_version, nvm_validate_implicit_alias: avoid forks (#3949)
  • nvm_echo: use the printf shell builtin under zsh (#3949)
  • nvm_get_os: read /etc/os-release instead of forking uname -a (#3949)
  • nvm_npmrc_bad_news_bears: scan npmrc files without forking grep (#3949)
  • nvm_die_on_prefix: detect the OS only when it is needed (#3949)
  • nvm_version: resolve an exact, installed version without nvm_ls (#3949)
  • nvm_is_version_installed: check the modern layout's path before the full lookup (#3949)
  • nvm_resolve_local_alias: skip nvm_version for an exact, installed version (#3937)
  • nvm use: skip re-resolving an exact, installed version (#3937)
Docs
  • [readme] cdnvm: let nvm parse .nvmrc, so a symlinked .nvmrc's content is not printed
  • [readme] Fix a Docker warning from using Docker installation instructions (#3927)
  • [readme] explain the misleading npm install error from npm run test/fast (#3944)
Misc
  • [meta] Makefile: default NVM_DIR to the checkout when it is not set
  • [meta] release-notes.sh: replace control characters in commit subjects
Tests
  • make fast tests pass as root, without sudo, and without a terminal
  • [actions] TOC: use node/install instead of setup-node
  • pin --lts and node installs to end-of-life lines, so a new node release can't break them
  • bash_completion: don't let zsh's compinit wait for an answer
  • [actions] tests-alpine: time out jobs well before GitHub's 6-hour limit
  • nvm_download: point the httpbin Authorization check at a configured mirror
  • nvm_get_arch_unofficial: set NVM_DIR when sourcing nvm.sh in the chroots
  • nvm install v1 works: get the version from nvm_remote_version, not the ls-remote display
  • [actions] cache container images, verified against digests looked up live
  • [actions] pull container images through Google's Docker Hub mirror
  • [actions] never let an apt install wait on a prompt
  • [actions] retry apt package installs through Ubuntu mirror outages
  • add unit coverage for nvm_version_greater_than_or_equal_to (#3942)
  • add unit tests for nvm_version_greater_than_or_equal_to (#3941)
  • nvm install --reinstall-packages-from: mock the remote version instead of fetching it
  • [actions] run the fast suite on macOS and WSL too
  • make the fast suite pass on macOS
  • [actions] rename windows-npm workflow to windows-nvm, since it tests nvm install
View originalPermalink
How v0.41.0 went

v0.40.8

Added 1
  • release-notes.sh release notes generator added
Changed 4
  • nvm-exec improves the failure message shown when no version is available
  • nvm --help set-colors legend is extracted into nvm_print_color_legend
  • nvm_tree_contains_path is optimized with an in-memory POSIX parent-walk
  • README documents platforms with no official Node binaries
Fixed 13
  • nvm_alias and nvm_version_path reject '..' path components
  • nvm_get_make_jobs counts cores on platforms the case statement does not name
  • nvm use no longer clobbers man's default search path
  • nvm_err and nvm_err_with_colors no longer fail when stderr is closed
  • nvm_hash_reset only runs hash -r on shells that support it
  • nvm_alias unsets zsh's extendedglob while reading an alias file
Removed 1
  • CLAUDE.md symlink removed in favor of AGENTS.md
View originalRead the notes
How v0.40.8 went

v0.40.7

Added 2
  • nvm install serializes concurrent installs of the same version
  • nvm install accepts NVM_NO_SOURCE_FALLBACK to disable the source fallback
Fixed 3
  • nvm install rejects a structurally broken installed version
  • nvm_install_binary_extract replaces a broken version directory atomically
  • install.sh nvm_download avoids eval so arguments are no longer re-parsed by the shell
View originalRead the notes
How v0.40.7 went

v0.40.6

Added 1
  • Add support for loongarch64 architecture in install
Changed 3
  • Document nvm reinstall-packages as a standalone command
  • Document current and clarify .nvmrc fallback in help and README
  • Document the mirror payload and metadata trust boundary in the threat model
Fixed 14
  • Support arm64-musl on Alpine Linux
  • Include source-cached and io.js artifacts in nvm_ls_cached
  • Parse commented nvmrc content in nvm_ls
  • Bypass aliased curl when downloading
  • Only select a downloader in nvm_download, nvm_get_latest, and install that exists as an executable
  • Use command to bypass curl and wget shell functions and aliases
Security 2
  • Add all valid base64 characters to the auth header sanitize function
  • Reject unsafe LTS alias names from a mirror's index.tab
View originalRead the notes
How v0.40.6 went

v0.40.5

Added 1
  • Add nvm install --offline to install from cache without network access
Fixed 17
  • Send a well-formed Authorization header on the wget path in nvm_download
  • Only reject uppercase for LTS names, not regular aliases, in nvm_normalize_lts
  • Check mkdir return codes in install.sh
  • Fix POSIX compliance, printf format strings, and profile detection in install.sh
  • Show alias name in infinite loop error message from nvm which
  • Fix alias cleanup glob expansion in nvm uninstall
Security 4
  • Address CVE-2026-10796
  • Reject version strings with disallowed characters in nvm_download_artifact
  • Pass the tarball name to awk as data rather than program text in nvm_get_checksum
  • Avoid eval in nvm_download so mirror-supplied version strings cannot inject commands
View originalRead the notes
How v0.40.5 went

v0.40.4

Changed 2
  • nvm ls shows the system Node.js version
  • Uninstall error message for missing versions is improved
Fixed 10
  • nvm_has_colors also checks whether stdout is a terminal
  • nvm_strip_path avoids the gawk-specific RT variable for mawk compatibility
  • nvm_get_default_packages uses portable awk patterns
  • nvm_install_source explicitly sets SHELL=/bin/sh for make
  • install.sh no longer logs when the user has requested no profile modifications
  • nvm exec performs a version check on nvm-exec
Security 1
  • Sanitize NVM_AUTH_HEADER in the wget path
View originalRead the notes
How v0.40.4 went

v0.40.3

nvm_install_latest_npm: fix node version detection

View originalRead the notes
How v0.40.3 went

v0.40.2

Added 1
  • install.sh now adds $ZDOTDIR to the zsh profile search
Changed 2
  • install-latest-npm updated to support npm v11
  • Give a more helpful message when the lts alias is mistakenly used
Fixed 5
  • reinstall-packages no longer reinstalls corepack
  • Avoid bash-specific syntax for better shell compatibility
  • nvm_install_latest_npm no longer fails on an unbound variable
  • nvm ls, nvm alias, and nvm install now error when an LTS name is invalid
  • nvm_normalize_lts now errors when an LTS name is not lowercase
View originalRead the notes
How v0.40.2 went

v0.40.1

Changed 2
  • Clean up some usage of --save
  • Fix node capitalization in install.sh
Fixed 6
  • Ensure all arguments are quoted in nvm_download
  • Avoid a conflict with set -e when using --save
  • Avoid an aliased tput in nvm_has_colors
  • Declare an unbound variable
  • Do not attempt to download source when a binary download fails with nvm install -b
  • When no binary is available with nvm install -b, fail and output a clear message
View originalRead the notes
How v0.40.1 went

v0.40.0

Added 3
  • `nvm use` and `nvm install` accept a `--save` option
  • Support for the `NVM_AUTH_HEADER` environment variable
  • `.nvmrc` files support comments
Changed 2
  • `nvm_get_default_packages` uses `awk` for more reliable file processing
  • `nvm_has_colors` also checks the environment variable
Fixed 2
  • zsh global aliases no longer break `nvm help`
  • `install-latest-npm` no longer breaks `npm ls` with file: dependencies on npm ^8.7
Removed 1
  • Uninstall instructions in the README have been corrected
View originalRead the notes
How v0.40.0 went

v0.39.7

Fixed 1
  • Use `\hash` instead of `command hash` for `zsh`
View originalRead the notes
How v0.39.7 went
View all

Discussion

If you publish nvm, you can claim this product by proving you administer its repository.