# 使用 Homebrew 安装 nodebrew

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

## 安装

```sh
sudo av install brew:nodebrew
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nodebrew
```

  证据: local Homebrew formula metadata

## 软件包事实

- **软件包键:** brew:nodebrew
- **软件包管理器:** Homebrew
- **版本:** 1.2.0
- **来源摘要:** Node.js version manager
- **主页:** <https://github.com/hokaccha/nodebrew>
- **仓库:** <https://github.com/hokaccha/nodebrew>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nodebrew (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

- 页面生成时间: 2026-08-03
- 管理器版本: 1.2.0
## 项目历史与用法

`nodebrew` is a Perl-based Node.js version manager by Kazuhito Hokamura. It predates many later Node version-manager workflows and keeps a simple model: download or compile Node.js versions under a per-user root, switch a `current` path, and put that path in the user's shell.

### 项目历史

GitHub metadata shows the repository was created on 2011-11-15. The README presents a curl-to-Perl setup flow, a default root of `$HOME/.nodebrew`, and shell PATH setup using `$HOME/.nodebrew/current/bin`.

The tag history shows v1.0.0 committed on 2018-03-10, v1.1.0 on 2021-04-23, and v1.2.0 on 2022-03-19. Homebrew reported stable version 1.2.0 on 2026-07-01, matching the latest tag listed by GitHub.

### 采用历史

By 2026-07-01, GitHub metadata reported 1067 stars and 66 forks. Homebrew's formula API reported 4600 installs over 365 days and 211 installs over 30 days. That places it below `nodenv` in Homebrew usage, but still visible as a long-lived Node version manager.

Its adoption story is strongest among users who prefer a small standalone version manager without the rbenv-style shim system. The README focuses on direct commands rather than project-local automatic switching.

### 使用方式

Typical usage is `nodebrew install <version>` to download a binary, `nodebrew compile <version>` to build from source, `nodebrew use <version>` to switch, and `nodebrew ls-remote` or `nodebrew ls-all` to inspect available and installed versions. It also supports aliases, pruning old versions, migrating global npm packages, and `nodebrew exec <version> -- <command>` for one-off execution.

The package-nerd distinction is that nodebrew changes the selected version by changing which installation is exposed through `$HOME/.nodebrew/current/bin`. That is simpler than shim dispatch but less project-automatic than `.node-version` managers.

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

It is a useful historical Node manager entry because it represents the single-purpose, per-user install-tree style: no plugin ecosystem, no Python virtualenv integration, and no rbenv ancestry required.

### 时间线

- 2011-11-15: GitHub repository `hokaccha/nodebrew` was created.
- 2018-03-10: v1.0.0 tag commit.
- 2021-04-23: v1.1.0 tag commit.
- 2022-03-19: v1.2.0 tag commit.
- 2026-07-01: Homebrew formula API reported stable version 1.2.0.

### Related projects

- nvm
- n
- nodenv
- nodeenv

### 来源

- <https://api.github.com/repos/hokaccha/nodebrew>
- <https://api.github.com/repos/hokaccha/nodebrew/tags>
- <https://formulae.brew.sh/api/formula/nodebrew.json>
- <https://github.com/hokaccha/nodebrew>
- <https://raw.githubusercontent.com/hokaccha/nodebrew/master/README.md>


## 安全说明

infrastructure mutation or orchestration signal.

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


## Combined YAML source

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


## 来源

- pkg.so package database
- Geiger risk classifier
- curated package history
- pkgdb category and tag curation
- cross-ecosystem install command graph
