# nodenv を Homebrew, Nix でインストール

nodenv のインストール経路、実行ファイル、メタデータ、AI エージェント向けセキュリティノートを確認します。

## インストール

```sh
sudo av install brew:nodenv
```

追加のインストールコマンド:

### macOS

- Homebrew (100%):

```sh
brew install nodenv
```

  証拠: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nodenv
```

  証拠: nixpkgs package indexes: pkgs/by-name/no/nodenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1

## パッケージ情報

- **パッケージキー:** brew:nodenv
- **パッケージマネージャ:** Homebrew
- **バージョン:** 1.6.2
- **ソース概要:** Node.js version manager
- **ホームページ:** <https://github.com/nodenv/nodenv>
- **リポジトリ:** <https://github.com/nodenv/nodenv>
- **生成日時:** 2026-08-03T19:37:03+00:00

## 実行可能ファイル

- nodenv (エイリアス)

## インストール挙動

- Bottle: 利用不可

## バージョンと鮮度

- ページ生成日: 2026-08-03
- マネージャ版: 1.6.2
## プロジェクトの歴史と使われ方

`nodenv` is the rbenv-style Node.js version manager: shims in PATH, per-project `.node-version` files, and Node installations under `~/.nodenv/versions`. It is for developers who want automatic project-local Node selection without shell-function-heavy tools.

### プロジェクトの歴史

GitHub metadata shows `nodenv/nodenv` was created on 2013-03-10. Its README credits it as forked from Sam Stephenson's `rbenv` by Will McKenzie and modified for Node.js, which explains the shims, local/global version files, and plugin-driven design.

The companion `nodenv/node-build` repository was created on 2013-03-10 and provides the `nodenv install` command. Its README describes downloading, compiling, and installing Node on Unix-like systems, using precompiled binaries when available and source builds otherwise.

### 採用の歴史

By 2026-07-01, GitHub metadata reported 2384 stars and 156 forks for `nodenv/nodenv`, plus 294 stars and 85 forks for `nodenv/node-build`. Homebrew's formula API reported stable version 1.6.2 and 11734 installs over 365 days, more than nodebrew and far more than nodeenv in the same Homebrew snapshot.

The README recommends Homebrew on macOS or Linux, and the formula depends on `node-build`. That packaging relationship is part of its adoption: users get the shim manager and the installer plugin as a package-manager-friendly pair.

### 使われ方

After `nodenv init`, invocations of `node`, `npm`, `npx`, and related executables pass through nodenv's shims. nodenv scans for `.node-version`, then resolves the requested version under `~/.nodenv/versions`. Common commands are `nodenv install -l`, `nodenv install 24.1.0`, `nodenv local 24.1.0`, `nodenv global 24.1.0`, and `nodenv versions`.

Package nerds use it where `.node-version` is the contract in a repository. The useful detail is precedence and locality: a checked-in `.node-version` makes directory changes switch Node versions automatically, while globally installed npm packages are scoped to the active Node installation.

### パッケージ好きにとっての重要性

nodenv matters because it gives Node.js the same operational shape as rbenv and pyenv: shims, local version files, and plugins. That makes it attractive in polyglot developer environments where people already understand the rbenv family.

### タイムライン

- 2013-03-10: GitHub repositories `nodenv/nodenv` and `nodenv/node-build` were created.
- 2023-02-18: nodenv v1.4.1 release was published.
- 2024-05-27: nodenv v1.5.0 release was published.
- 2025-07-30: nodenv v1.6.2 release was published.
- 2026-07-01: Homebrew formula API reported stable version 1.6.2.

### Related projects

- rbenv
- node-build
- nodenv-default-packages
- nodenv-package-json-engine
- nvm
- nodebrew

### ソース

- <https://api.github.com/repos/nodenv/node-build>
- <https://api.github.com/repos/nodenv/nodenv>
- <https://formulae.brew.sh/api/formula/nodenv.json>
- <https://github.com/nodenv/node-build>
- <https://github.com/nodenv/nodenv>
- <https://github.com/nodenv/nodenv/releases>
- <https://raw.githubusercontent.com/nodenv/node-build/main/README.md>
- <https://raw.githubusercontent.com/nodenv/nodenv/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, ~/.nodenv/version
## 他のパッケージマネージャ記録

- Nix - nodenv: normalized package name match | nixpkgs package indexes: pkgs/by-name/no/nodenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1


## Combined YAML source

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


## ソース

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