# 使用 npm 安装 n

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

## 安装

```sh
sudo av install npm:n
```

其他安装命令:

### 便携式和语言管理器

- npm (100%):

```sh
npm install -g n
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:n
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/n>
- **版本:** 10.2.0
- **来源摘要:** Interactively Manage All Your Node Versions
- **主页:** <https://github.com/tj/n>
- **仓库:** <https://github.com/tj/n>
- **上游文档:** <https://github.com/tj/n>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/n/-/n-10.2.0.tgz>
- **问题跟踪器:** <https://github.com/tj/n/issues>
- **发布时间:** 2025-05-21T03:43:58.312Z
- **最后更新:** 2025-05-21T03:43:58.312Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- n (cli)

## 构建依赖

- bats
- bats-assert
- bats-support

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 10.2.0
- 管理器更新时间: 2025-05-21
- 本地数据: OK
- 上游仓库: https://github.com/tj/n
- 警告: The package-manager record has not been updated in over a year.
- 信息: No cached GitHub release or tag data was available.

## 安全说明

没有找到 n 的匹配本地密钥处理 manifest。Nucleus 软件包元数据仍在此发布，以便未来覆盖拥有稳定的软件包 URL。


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 10.2.0
- **Version Count:** 120
- **Maintainers:** tjholowaychuk, shadowspawn
- **Author:** TJ Holowaychuk
- **Publisher:** shadowspawn
- **Engines:** Node: *
- **Integrity:** sha512-zlLXwSEMQgAHmsXtcZwNuA2W5rLdAJyg51DI47ubDWE0Bss0ji9sbK3eD6vM7kKgRLTFm/i4+FvE4SXvphaSHg==
- **Shasum:** eec9d345af617f8cb2eb75da370f2364fbdfeac9
- **Unpacked Size:** 68,777
- **File Count:** 0
- **Created At:** 2011-01-05T16:20:52.658Z
- **Latest Published At:** 2025-05-21T03:43:58.312Z
- **Modified At:** 2026-06-09T21:05:50.995Z

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

- MacPorts - n: normalized package name match | MacPorts ports tree: devel/n/Portfile from https://api.github.com/repos/macports/macports-ports/git/trees/master?recursive=1


## 相关链接

- [Source-control packages](https://www.automicvault.com/zh-hans/pkg/source-control-tools/) - Matched curated package taxonomy and local package facts.
- [n](https://www.automicvault.com/zh-hans/pkg/brew/n/) - Same normalized package name appears in another local ecosystem. Shared terms: manager, node, version.
- [create-vite](https://www.automicvault.com/zh-hans/pkg/npm/create-vite/) - Both packages touch the same language runtime or ecosystem. Shared terms: manager, node, version, your.
- [instant-cli](https://www.automicvault.com/zh-hans/pkg/npm/instant-cli/) - Both packages touch the same language runtime or ecosystem. Shared terms: env, manager, node, version.
- [n](https://www.automicvault.com/zh-hans/pkg/brew/n/) - Same normalized package name exists in another local package ecosystem.

## 来源

- Nucleus package database
- package-page enrichment
- package version freshness
- package relationship graph
- external package-manager database matches
- cross-ecosystem install command graph
