# 使用 Homebrew 安装 ndenv

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

## 安装

```sh
sudo av install brew:ndenv
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install ndenv
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:ndenv
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/ndenv>
- **版本:** 0.4.0
- **来源摘要:** Node version manager
- **主页:** <https://github.com/riywo/ndenv>
- **仓库:** <https://github.com/riywo/ndenv>
- **许可证:** MIT
- **源码归档:** <https://github.com/riywo/ndenv/archive/refs/tags/v0.4.0.tar.gz>
- **最后更新:** 2026-05-14T11:39:17-04:00
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- ndenv (cli)
- ndenv (别名)

## 依赖

- node-build

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 arm64_big_sur, arm64_linux, arm64_monterey, arm64_sequoia, arm64_sonoma, arm64_tahoe, arm64_ventura, big_sur, catalina, monterey, sonoma, ventura

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 0.4.0
- 管理器更新时间: 2026-05-14
- 本地数据: OK
- 上游仓库: https://github.com/riywo/ndenv
- 检测到的最新版本: v0.4.0 (当前)
## 项目历史与用法

ndenv is Ryosuke Iwanaga's rbenv-style Node.js version manager. Its README describes it as similar to rbenv, able to manage multiple Node.js and io.js versions, and able to switch automatically using a per-project `.node-version` file.

### 项目历史

The GitHub API reports the riywo/ndenv repository was created on June 20, 2013. The README says almost all of the code came from rbenv, making ndenv part of the wave of language runtime managers that copied rbenv's shim-and-version-file model into other ecosystems.

The project's own README marks ndenv deprecated, recommends nodenv, and says the repository is not maintained actively. Homebrew also marks the formula deprecated and lists August 24, 2026 as the disable date, with nodenv as the recommended replacement.

### 采用历史

ndenv's practical adoption path was narrow but clear: developers who liked rbenv's automatic local version switching for Ruby could use a similar workflow for Node before nodenv, fnm, mise, asdf-nodejs, and other tools became common.

On July 1, 2026, Homebrew Formulae listed only 61 ndenv installs in its 365-day analytics window. That small number matches the upstream deprecation note and the ecosystem shift toward maintained replacements.

### 使用方式

The old workflow was to install ndenv, initialize shell integration, install node-build as the installer plugin, run commands such as `ndenv install v0.12.0`, and commit `.node-version` so entering a project directory selected the expected runtime.

The broader `.node-version` convention outlived ndenv. Independent compatibility research lists many tools that read `.node-version`, while noting that the file has no single formal standard.

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

ndenv matters less as a package to install than as a fossil in the version-manager lineage: rbenv semantics, Node/io.js era naming, node-build plugin dependency, and a clean migration story to nodenv.

### 时间线

- {'date': '2013-06-20', 'event': 'riywo/ndenv repository creation date reported by the GitHub API.'}
- {'date': '2018-12-27', 'event': 'Last push date reported by the GitHub API for riywo/ndenv.'}
- {'date': '2026-07-01', 'event': 'Homebrew Formulae listed ndenv as deprecated with 61 installs in the 365-day analytics window.'}
- {'date': '2026-08-24', 'event': 'Homebrew Formulae listed this as the formula disable date.'}

### Related projects

- rbenv
- node-build
- nodenv
- nvm
- asdf-nodejs
- mise
- fnm

### 来源

- <https://api.github.com/repos/riywo/ndenv>
- <https://formulae.brew.sh/formula/ndenv>
- <https://github.com/nodenv/nodenv/blob/main/README.md>
- <https://github.com/riywo/ndenv>
- <https://github.com/shadowspawn/node-version-usage/blob/main/README.md>


## 安全说明

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: ./.node-version
## 源数据库详情

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [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.
- [node-build](https://pkg.so/zh-hans/brew/node-build/) - Runtime dependency declared by Homebrew.
- [fnm](https://pkg.so/zh-hans/brew/fnm/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, version-manager.
- [nodenv](https://pkg.so/zh-hans/brew/nodenv/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, version-manager.
- [nodebrew](https://pkg.so/zh-hans/brew/nodebrew/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, version-manager.
- [vfox](https://pkg.so/zh-hans/brew/vfox/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, runtime-management, version-manager.
- [nave](https://pkg.so/zh-hans/brew/nave/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, version-manager.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs.
- [rbenv](https://pkg.so/zh-hans/brew/rbenv/) - Shares pkgdb curated category or tags: cli, developer-tools, version-manager.

## Combined YAML source

View the package source record on GitHub. [combined/ndenv.yml](https://github.com/mxcl/pkgdb/blob/main/combined/ndenv.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
- cross-ecosystem install command graph
