# 使用 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
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nodeenv>
- **版本:** 1.10.0
- **来源摘要:** Node.js virtual environment builder
- **主页:** <https://ekalinin.github.io/nodeenv/>
- **仓库:** <https://github.com/ekalinin/nodeenv>
- **上游文档:** <https://ekalinin.github.io/nodeenv>
- **许可证:** BSD-3-Clause
- **源码归档:** <https://github.com/ekalinin/nodeenv/archive/refs/tags/1.10.0.tar.gz>
- **已生成:** 2026-07-08T18:08:21+00:00

## 可执行文件

- nodeenv (cli)
- nodeenv (别名)

## macOS 提供的库

- python

## 安装行为

- post-install 钩子: 未定义
- Bottle: 可用 于 all

## 版本和新鲜度

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

`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

## 源数据库详情

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

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

- 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/


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Belongs to a source-control command family.
- [Terminal utility packages](https://www.automicvault.com/zh-hans/pkg/terminal-utilities/) - Matched terminal and command-line workflow metadata.
- [Text processing packages](https://www.automicvault.com/zh-hans/pkg/text-processing-tools/) - Matched text, document, or structured-data processing metadata.
- [Developer build packages](https://www.automicvault.com/zh-hans/pkg/developer-build-tools/) - Matched build, compiler, generator, or developer workflow metadata.
- [coder](https://www.automicvault.com/zh-hans/pkg/brew/coder/) - Shares av.db curated category or tags: cli, developer-tools, development-environments.
- [devcontainer](https://www.automicvault.com/zh-hans/pkg/brew/devcontainer/) - Shares av.db curated category or tags: cli, developer-tools, development-environments.
- [envd](https://www.automicvault.com/zh-hans/pkg/brew/envd/) - Shares av.db curated category or tags: cli, developer-tools, development-environments.
- [fades](https://www.automicvault.com/zh-hans/pkg/brew/fades/) - Shares av.db curated category or tags: cli, developer-tools, python, virtualenv.
- [nox](https://www.automicvault.com/zh-hans/pkg/brew/nox/) - Shares av.db curated category or tags: cli, developer-tools, python, virtualenv.
- [pyenv-virtualenv](https://www.automicvault.com/zh-hans/pkg/brew/pyenv-virtualenv/) - Shares av.db curated category or tags: cli, developer-tools, python, virtualenv.
- [pyenv-virtualenvwrapper](https://www.automicvault.com/zh-hans/pkg/brew/pyenv-virtualenvwrapper/) - Shares av.db curated category or tags: cli, developer-tools, python, virtualenv.
- [rye](https://www.automicvault.com/zh-hans/pkg/brew/rye/) - Shares av.db curated category or tags: cli, developer-tools, python, virtualenv.
- [nave](https://www.automicvault.com/zh-hans/pkg/brew/nave/) - Both packages touch the same language runtime or ecosystem. Shared terms: cli, developer, developer-tools, environments, node.

## Combined YAML source

View the package source record on GitHub. [combined/nodeenv.yml](https://github.com/automic-vault/db/blob/main/combined/nodeenv.yml)


## 来源

- Nucleus package database
- Geiger risk classifier
- package-page enrichment
- curated package history
- package version freshness
- av.db category and tag curation
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
