# Install nvm with Homebrew, chocolatey, MacPorts, pacman, scoop

Manage multiple Node.js versions. Version 0.40.6 via Homebrew; verified 2026-07-16. Also installable with pacman: sudo pacman -S nvm.

## Install

```sh
sudo av install brew:nvm
```

Additional install commands:

### macOS

- Homebrew (100%):

```sh
brew install nvm
```

  Evidence: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install nvm
```

  Evidence: MacPorts ports tree: devel/nvm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- pacman (92%):

```sh
sudo pacman -S nvm
```

  Evidence: Arch Linux sync databases: nvm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz

### Windows

- Chocolatey (92%):

```sh
choco install nvm
```

  Evidence: Chocolatey community package catalog: nvm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nordvpn-teams'

- Scoop (92%):

```sh
scoop install main/nvm
```

  Evidence: Scoop official bucket manifest trees: bucket/nvm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1

## Package facts

- **Package key:** brew:nvm
- **Package manager:** Homebrew
- **Package manager page:** <https://formulae.brew.sh/formula/nvm>
- **Version:** 0.40.6
- **Source summary:** Manage multiple Node.js versions
- **Homepage:** <https://github.com/nvm-sh/nvm>
- **Repository:** <https://github.com/nvm-sh/nvm>
- **License:** MIT
- **Source archive:** <https://github.com/nvm-sh/nvm/archive/refs/tags/v0.40.6.tar.gz>
- **Last updated:** 2026-07-16T00:53:37Z
- **Generated:** 2026-08-04T22:13:35+00:00

## Install behavior

- Post-install hook: not defined
- Caveats: Please note that upstream has asked us to make explicit managing nvm via Homebrew is unsupported by them and you should check any problems against the standard nvm install method prior to reporting. You should create NVM's working directory if it doesn't exist: mkdir ~/.nvm Add the following to your shell profile e.g. ~/.profile or ~/.zshrc: export NVM_DIR="$HOME/.nvm" [ -s "$HOMEBREW_PREFIX/opt/nvm/nvm.sh" ] && \. "$HOMEBREW_PREFIX/opt/nvm/nvm.sh" # This loads nvm [ -s "$HOMEBREW_PREFIX/opt/nvm/etc/bash_completion.d/nvm" ] && \. "$HOMEBREW_PREFIX/opt/nvm/etc/bash_completion.d/nvm" # This loads nvm bash_completion You can set $NVM_DIR to any location, but leaving it unchanged from $HOMEBREW_CELLAR/nvm/0.40.6 will destroy any nvm-installed Node installations upon upgrade/reinstall. Type `nvm help` for further information.
- Bottle: available on all

## Freshness

- Page generated: 2026-08-04
- Package-manager version: 0.40.6
- Package-manager updated: 2026-07-16
- Local data: ok
- Upstream repository: https://github.com/nvm-sh/nvm
- Upstream latest detected: v0.40.6 (current)

## Security Notes

No matching local secret-handling manifest was found for nvm. Package metadata is still published here so future coverage has a stable package URL.


## Source Database Details

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** nvm
- **Version Scheme:** 0
- **Revision:** 0
- **Head Version:** HEAD
- **Bottle Stable Root URL:** <https://ghcr.io/v2/homebrew/core>
- **Deprecated:** no
- **Disabled:** no
- **Keg Only:** no
- **URL Keys:** head, stable

## Other Package-Manager Records

- pacman - nvm - 0.40.5-1: normalized package name match | Arch Linux sync databases: nvm from https://geo.mirror.pkgbuild.com/extra/os/x86_64/extra.db.tar.gz | Node Version Manager - Simple bash script to manage multiple active node.js versions | https://github.com/nvm-sh/nvm
- MacPorts - nvm: normalized package name match | MacPorts ports tree: devel/nvm/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - nvm: normalized package name match | Chocolatey community package catalog: nvm from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','nordvpn-teams'
- Scoop - main/nvm: normalized package name match | Scoop official bucket manifest trees: bucket/nvm.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1


## Related links

- [Source-control packages](https://pkg.so/source-control-tools/) - Belongs to a source-control command family.
- [Language runtime packages](https://pkg.so/language-runtime-packages/) - Matched language runtime, compiler, or interpreter metadata.
- [Networking and protocol packages](https://pkg.so/networking-protocol-tools/) - Matched network, protocol, or remote-service metadata.
- [Web development packages](https://pkg.so/web-dev-tools/) - Matched web development metadata.
- [n](https://pkg.so/npm/n/) - Both packages touch the same language runtime or ecosystem. Shared terms: manage, node, nvm, versions.
- [solc-select](https://pkg.so/brew/solc-select/) - Local package facts share a topical domain. Shared terms: manage, multiple, versions.
- [nvs](https://pkg.so/cask/nvs/) - Both packages touch the same language runtime or ecosystem. Shared terms: node, node-js, versions.

## Sources

- pkg.so package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
