# 使用 Homebrew, chocolatey, MacPorts, Nix, scoop, winget 安装 volta

查看 volta 的安装路径、可执行文件、元数据以及面向 AI 代理工作流的安全说明。

## 安装

```sh
sudo av install brew:volta
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install volta
```

  证据: local Homebrew formula metadata

- MacPorts (94%):

```sh
sudo port install volta
```

  证据: MacPorts ports tree: www/volta/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#volta
```

  证据: nixpkgs package indexes: pkgs/by-name/vo/volta/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

### Windows

- Chocolatey (92%):

```sh
choco install volta
```

  证据: Chocolatey community package catalog: volta from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','visualstudio2022enterprise'

- Scoop (92%):

```sh
scoop install main/volta
```

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

- winget (92%):

```sh
winget install --id Volta.Volta -e
```

  证据: Windows Package Manager source index: Volta.Volta from https://cdn.winget.microsoft.com/cache/source.msix

## 软件包事实

- **软件包键:** brew:volta
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/volta>
- **版本:** 2.0.2
- **来源摘要:** JavaScript toolchain manager for reproducible environments
- **主页:** <https://volta.sh>
- **仓库:** <https://github.com/volta-cli/volta>
- **上游文档:** <https://volta.sh>
- **许可证:** BSD-2-Clause
- **源码归档:** <https://github.com/volta-cli/volta/archive/refs/tags/v2.0.2.tar.gz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- volta (cli)
- volta-migrate (cli)
- volta-shim (cli)
- volta (别名)
- volta-migrate (别名)
- volta-shim (别名)

## 构建依赖

- pkgconf
- rust

## macOS 提供的库

- bzip2

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_linux, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, sonoma, ventura, x86_64_linux

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.0.2
- 本地数据: OK
- 上游仓库: https://github.com/volta-cli/volta
- 检测到的最新版本: v2.0.2 (当前)
- 信息: No package-manager update timestamp was available.
## 项目历史与用法

Volta is a Rust-built JavaScript toolchain manager whose central idea is to make Node.js, npm, Yarn, and package binaries project-aware through fast shims. Instead of asking developers to manually switch Node versions, it records tool choices in `package.json` and routes commands to the right cached executable.

### 项目历史

Volta began publicly as a project called Notion. Its v0.1.0 pre-release, published on August 21, 2018, supported macOS and Linux, Node and Yarn installation, `notion use`, and a proof-of-concept plugin API. The release history shows the project adding npm/npx support, package-binary installation, fish support, a `which` command, and other toolchain-manager features during the 0.x line.

The project renamed to Volta in version 0.5.0, changing the `package.json` key from `toolchain` to `volta` and adopting the JavaScript Launcher branding. Version 1.0.0 was released on December 21, 2020 with support for `npm link`, global update commands, and npm/Yarn handling improvements.

By 2025, the repository README and pinned issue stated that Volta was unmaintained and that maintainers recommended migrating to mise. That status does not erase Volta's earlier role, but it changes its package-history context from active toolchain bet to a stable-but-maintenance-limited utility.

### 采用历史

Volta gained traction among JavaScript developers as an alternative to shell-function based version switchers such as nvm because its shims work across projects and shells and because pinned versions live in a file already committed by most Node projects. Its GitHub repository shows broad open-source adoption, with thousands of stars and packaging across macOS, Linux, and Windows ecosystems.

Its documentation emphasizes reproducible collaborator environments: `volta pin node@20` writes the selected engine into `package.json`, and collaborators who install Volta automatically get the same Node version when they enter the project directory. This made Volta part of the broader shift toward checking toolchain versions into application repositories.

### 使用方式

Typical use starts with `volta install node` or `volta install node@22` to set a default Node runtime. Inside a project, `volta pin node@20` or a similar command records the exact runtime or package-manager version in `package.json`; later invocations of `node`, `npm`, or `yarn` are routed by Volta's shims.

Volta also manages globally installed package binaries. The docs describe installing command-line tools through npm or Yarn while Volta pins the Node version used for that tool, so a globally installed executable keeps working even when the user's default Node version changes.

### 为什么软件包爱好者会关心

Volta is package-nerd significant because it treats the JavaScript runtime as package metadata. The interesting bit is not merely downloading Node; it is committing the runtime and package-manager versions beside dependencies so developer laptops, CI jobs, and cloned repos converge on the same toolchain.

Its later unmaintained status is also instructive: toolchain managers sit in the blast radius of operating systems, package registries, and runtime distribution changes, so maintenance health becomes part of the package story, not just an upstream README footnote.

### 时间线

- 2018-08-21: v0.1.0 pre-release was published under the original Notion command naming.
- 2019: The 0.x release line added npm/npx support, package binaries, fish support, and related toolchain-manager features.
- Version 0.5.0: The project renamed to Volta and changed the `package.json` key from `toolchain` to `volta`.
- 2020-12-21: Volta v1.0.0 was released.
- 2025-11-14: A pinned GitHub issue announced that Volta was unmaintained and recommended migration to mise.

### Related projects

- nvm, asdf, fnm, mise, and Corepack occupy adjacent JavaScript or multi-runtime toolchain-management space.
- Node.js, npm, Yarn, and pnpm are the runtimes and package managers that Volta routes or pins.

### 来源

- <https://api.github.com/repos/volta-cli/volta/releases/tags/v0.1.0>
- <https://api.github.com/repos/volta-cli/volta/releases/tags/v1.0.0>
- <https://docs.volta.sh/advanced/packages>
- <https://docs.volta.sh/guide/>
- <https://docs.volta.sh/guide/understanding>
- <https://github.com/volta-cli/volta>
- <https://github.com/volta-cli/volta/blob/main/RELEASES.md>
- <https://github.com/volta-cli/volta/issues/2080>


## 安全说明

infrastructure mutation or orchestration signal.

- **Geiger 风险:** orange / 中
- infrastructure mutation or orchestration signal


## Configuration and credential file locations

These source-backed paths show where this package keeps local settings or durable credentials. Automic Vault can use them as review targets for secret scanning, migration, and command approval.


## Configuration files

- Unix: package.json
- Windows: package.json
## 源数据库详情

- **Source Database:** Homebrew formula API
- **Tap:** homebrew/core
- **Full Name:** volta
- **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

## 其他软件包管理器记录

- Nix - volta: normalized package name match | nixpkgs package indexes: pkgs/by-name/vo/volta/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- MacPorts - volta: normalized package name match | MacPorts ports tree: www/volta/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1
- Chocolatey - volta: normalized package name match | Chocolatey community package catalog: volta from http://community.chocolatey.org/api/v2/Packages?$filter=IsLatestVersion&$select=Id&$top=1000&$skiptoken='11','visualstudio2022enterprise'
- Scoop - main/volta: normalized package name match | Scoop official bucket manifest trees: bucket/volta.json from https://api.github.com/repos/ScoopInstaller/Main/git/trees/master?recursive=1
- winget - Volta.Volta: normalized package name match | Windows Package Manager source index: Volta.Volta from https://cdn.winget.microsoft.com/cache/source.msix


## 相关链接

- [Secret-risk packages](https://pkg.so/zh-hans/secret-risk-packages/) - Has protected-tool coverage, approval-gate, or non-low Geiger security signals.
- [Terminal utility packages](https://pkg.so/zh-hans/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://pkg.so/zh-hans/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://pkg.so/zh-hans/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [pkgconf](https://pkg.so/zh-hans/brew/pkgconf/) - Build dependency declared by Homebrew.
- [rust](https://pkg.so/zh-hans/brew/rust/) - Build dependency declared by Homebrew.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [yarn](https://pkg.so/zh-hans/brew/yarn/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [fnm](https://pkg.so/zh-hans/brew/fnm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [zx](https://pkg.so/zh-hans/brew/zx/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [pnpm@9](https://pkg.so/zh-hans/brew/pnpm-9/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [pnpm@10](https://pkg.so/zh-hans/brew/pnpm-10/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [gulp-cli](https://pkg.so/zh-hans/brew/gulp-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [grunt-cli](https://pkg.so/zh-hans/brew/grunt-cli/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs.
- [aube](https://pkg.so/zh-hans/brew/aube/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, javascript, manager.

## Combined YAML source

View the package source record on GitHub. [combined/volta.yml](https://github.com/mxcl/pkgdb/blob/main/combined/volta.yml)


## 来源

- pkg.so package database
- Geiger risk classifier
- package-page enrichment
- curated configuration and credential file locations
- curated package history
- package version freshness
- pkgdb category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
