# 使用 Homebrew, apt, Nix 安装 nodeenv

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

## 安装

```sh
sudo av install brew:nodeenv
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nodeenv
```

  证据: local Homebrew formula metadata

### Linux

- Debian apt (92%):

```sh
sudo apt install nodeenv
```

  证据: Debian stable package indexes: nodeenv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz

- Nix (92%):

```sh
nix profile install nixpkgs#nodeenv
```

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

## 软件包事实

- **软件包键:** brew:nodeenv
- **软件包管理器:** Homebrew
- **版本:** 1.10.0
- **来源摘要:** Node.js virtual environment builder
- **主页:** <https://ekalinin.github.io/nodeenv/>
- **仓库:** <https://github.com/ekalinin/nodeenv>
- **已生成:** 2026-08-03T19:37:03+00:00

## 可执行文件

- nodeenv (别名)

## 安装行为

- Bottle: 不可用

## 版本和新鲜度

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

`nodeenv` brings the Python virtualenv mental model to Node.js. It creates isolated Node.js environments with their own installation directories and can integrate with an existing Python virtualenv, which makes it especially relevant to Python projects that need pinned Node/npm tooling.

### 项目历史

GitHub metadata shows `ekalinin/nodeenv` was created on 2011-03-29. The project documentation describes isolated Node.js environments that do not share libraries with other nodeenv environments, plus integration with Python virtualenv.

PyPI metadata identifies the package as `Node.js virtual environment builder`. The PyPI JSON queried on 2026-07-01 listed version 1.10.0 as the package version and included release uploads back to at least 0.10.0 on 2014-07-11. GitHub releases listed 1.10.0 published on 2025-12-20.

### 采用历史

By 2026-07-01, GitHub metadata reported 1784 stars and 221 forks. Homebrew's formula API reported stable version 1.10.0 and 669 installs over 365 days. That is modest for Homebrew, which fits a tool more often installed through pip inside Python-centric workflows.

The adoption niche is real but specific: projects that already use Python virtual environments and need Node.js or npm packages isolated with the same activation flow. The docs explicitly show `nodeenv -p` adding Node.js into an existing Python virtualenv.

### 使用方式

The basic workflow is `nodeenv env`, activate with `. env/bin/activate`, run `node` and `npm`, then leave with `deactivate_node`. Advanced usage covers listing available Node.js versions, using `--node=<version>`, using system Node with `--node=system`, installing from requirements files, choosing prebuilt binaries or source builds, mirrors, custom prompts, and updating an existing environment from a requirements file.

Package nerds reach for nodeenv when the Node dependency is subordinate to a Python project: documentation builds, asset pipelines, frontend test tooling, or old stacks that want `pip install nodeenv` rather than a separate language manager.

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

The important distinction is that nodeenv is an environment builder, not mainly an interactive version switcher. It belongs near virtualenv, tox, and Python packaging workflows as much as near nvm or nodenv.

### 时间线

- 2011-03-29: GitHub repository `ekalinin/nodeenv` was created.
- 2014-07-11: PyPI JSON included upload metadata for release 0.10.0.
- 2022-06-25: GitHub release 1.7.0 was published.
- 2024-06-04: GitHub release 1.9.1 was published.
- 2025-12-20: GitHub release 1.10.0 was published.
- 2026-07-01: Homebrew formula API reported stable version 1.10.0.

### Related projects

- virtualenv
- pip
- tox
- nvm
- nodenv

### 来源

- <https://api.github.com/repos/ekalinin/nodeenv>
- <https://ekalinin.github.io/nodeenv/>
- <https://formulae.brew.sh/api/formula/nodeenv.json>
- <https://github.com/ekalinin/nodeenv>
- <https://github.com/ekalinin/nodeenv/releases>
- <https://pypi.org/project/nodeenv/>
- <https://pypi.org/pypi/nodeenv/json>
- <https://raw.githubusercontent.com/ekalinin/nodeenv/master/README.rst>


## 安全说明

narrow executable package without higher-risk signals.

- **Geiger 风险:** 绿色 / 低
- narrow executable package without higher-risk signals

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

- Debian apt - nodeenv - 1.9.1-3: normalized package name match | Debian stable package indexes: nodeenv from https://deb.debian.org/debian/dists/stable/main/binary-amd64/Packages.xz | Node.js virtual environment builder | https://ekalinin.github.io/nodeenv/
- Nix - nodeenv: normalized package name match | nixpkgs package indexes: pkgs/by-name/no/nodeenv/package.nix from https://api.github.com/repos/NixOS/nixpkgs/git/trees/master?recursive=1
- Ubuntu apt - nodeenv - 0.13.4-1.1: normalized package name match | Ubuntu 24.04 LTS package indexes: nodeenv from https://archive.ubuntu.com/ubuntu/dists/noble/universe/binary-amd64/Packages.gz | Node.js virtual environment builder | https://ekalinin.github.io/nodeenv/


## Combined YAML source

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


## 来源

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