# 使用 Homebrew, Nix 安装 nrm

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

## 安装

```sh
sudo av install brew:nrm
```

其他安装命令:

### macOS

- Homebrew (100%):

```sh
brew install nrm
```

  证据: local Homebrew formula metadata

### Linux

- Nix (92%):

```sh
nix profile install nixpkgs#nrm
```

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

## 软件包事实

- **软件包键:** brew:nrm
- **软件包管理器:** Homebrew
- **软件包管理器页面:** <https://formulae.brew.sh/formula/nrm>
- **版本:** 2.1.0
- **来源摘要:** NPM registry manager, fast switch between different registries
- **主页:** <https://github.com/Pana/nrm>
- **仓库:** <https://github.com/Pana/nrm>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/nrm/-/nrm-2.1.0.tgz>
- **已生成:** 2026-08-04T22:13:35+00:00

## 可执行文件

- nrm (cli)
- nrm (别名)

## 依赖

- node

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-08-04
- 管理器版本: 2.1.0
- 本地数据: OK
- 上游仓库: https://github.com/Pana/nrm
- 信息: No package-manager update timestamp was available.
- 信息: No cached GitHub release or tag data was available.
## 项目历史与用法

nrm is a Node.js command-line registry manager that switches npm-compatible registry URLs quickly. The package was published to npm and GitHub on February 28, 2014, and its repository describes support for common registry presets including npm, yarn, cnpm, taobao/npmmirror, Tencent, npmMirror, and Huawei.

### 项目历史

The project emerged from the npm ecosystem's need to move between the public npm registry, regional mirrors, and private or vendor registries without hand-editing npm configuration. Its 2.x line, released in late 2024 and 2025, includes a TypeScript migration and fixes around `.npmrc` handling, showing maintenance rather than a frozen one-off script.

### 采用历史

nrm became a recognizable utility in JavaScript development workflows, especially where developers routinely compare registry latency or switch between regional mirrors. The GitHub repository had about 3,004 stars and 254 forks when queried on 2026-07-01; npm reported 10,993 downloads for the 2026-05-30 through 2026-06-28 period.

### 使用方式

The practical workflow is to install it globally with npm, Yarn, pnpm, or Homebrew, list configured registries with `nrm ls`, switch with `nrm use <name>`, test registry response time with `nrm test`, and add or delete custom registries. It is package-manager glue, not a package manager replacement.

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

nrm matters because registry choice is operational state in Node.js projects. A tiny CLI that makes that state visible and switchable reduces mistakes when working across corporate registries, npm mirrors, and public packages.

### 时间线

- 2014-02-28: GitHub repository created and npm package creation timestamp recorded.
- 2024-11-30: v1.5.0 release added local registry setting support.
- 2024-12-08: v2.0.0 release migrated the project to TypeScript.
- 2025-07-12: v2.1.0 release fixed invalid `home` field handling in `.npmrc`.

### 来源

- <https://api.npmjs.org/downloads/point/last-month/nrm>
- <https://formulae.brew.sh/api/formula/nrm.json>
- <https://github.com/Pana/nrm>
- <https://github.com/Pana/nrm/releases>
- <https://registry.npmjs.org/nrm>


## 安全说明

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:** nrm
- **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

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

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


## 相关链接

- [Source-control packages](https://pkg.so/zh-hans/source-control-tools/) - Belongs to a source-control command family.
- [Package publisher tools](https://pkg.so/zh-hans/package-publishers/) - Belongs to a package publishing or registry command family.
- [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](https://pkg.so/zh-hans/brew/node/) - Runtime dependency declared by Homebrew.
- [corepack](https://pkg.so/zh-hans/brew/corepack/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs, npm.
- [pnpm](https://pkg.so/zh-hans/brew/pnpm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs, package-management.
- [patch-package](https://pkg.so/zh-hans/brew/patch-package/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [npm-check-updates](https://pkg.so/zh-hans/brew/npm-check-updates/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [ni](https://pkg.so/zh-hans/brew/ni/) - Shares pkgdb curated category or tags: cli, developer-tools, nodejs, npm, package-management.
- [qnm](https://pkg.so/zh-hans/brew/qnm/) - Shares pkgdb curated category or tags: cli, developer-tools, javascript, nodejs, npm.
- [pipx](https://pkg.so/zh-hans/brew/pipx/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.
- [cask](https://pkg.so/zh-hans/brew/cask/) - Shares pkgdb curated category or tags: cli, developer-tools, package-management.

## Combined YAML source

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


## 来源

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