# 使用 npm 安装 np

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

## 安装

```sh
sudo av install npm:np
```

其他安装命令:

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

- npm (100%):

```sh
npm install -g np
```

  证据: local npm package metadata

## 软件包事实

- **软件包键:** npm:np
- **软件包管理器:** npm
- **软件包管理器页面:** <https://www.npmjs.com/package/np>
- **版本:** 11.2.1
- **来源摘要:** A better npm publish
- **主页:** <https://github.com/sindresorhus/np#readme>
- **仓库:** <https://github.com/sindresorhus/np>
- **上游文档:** <https://github.com/sindresorhus/np#readme>
- **许可证:** MIT
- **源码归档:** <https://registry.npmjs.org/np/-/np-11.2.1.tgz>
- **问题跟踪器:** <https://github.com/sindresorhus/np/issues>
- **发布时间:** 2026-05-12T17:04:00.979Z
- **最后更新:** 2026-05-12T17:04:00.979Z
- **已生成:** 2026-07-08T07:18:31+00:00

## 可执行文件

- np (cli)
- np (别名)

## 依赖

- chalk
- chalk-template
- clipboardy
- cosmiconfig
- del
- escape-goat
- escape-string-regexp
- execa
- exit-hook
- github-url-from-git
- hosted-git-info
- ignore-walk
- import-local
- inquirer
- is-installed-globally
- is-interactive
- is-scoped
- issue-regex
- listr
- listr-input
- log-symbols
- meow
- new-github-release-url
- npm-name
- onetime
- open
- p-memoize
- package-directory
- path-exists
- read-package-up
- read-pkg
- rxjs
- semver
- symbol-observable
- terminal-link
- update-notifier

## 构建依赖

- @sindresorhus/is
- @types/semver
- ava
- common-tags
- esmock
- fs-extra
- map-obj
- sinon
- strip-ansi
- tempy
- write-package
- xo

## 安装行为

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

## 版本和新鲜度

- 页面生成时间: 2026-07-08
- 管理器版本: 11.2.1
- 管理器更新时间: 2026-05-12
- 本地数据: OK
- 上游仓库: https://github.com/sindresorhus/np
- 信息: No cached GitHub release or tag data was available.

## 安全说明

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


## 源数据库详情

- **Source Database:** npm registry
- **Dist Tags:** Latest: 11.2.1
- **Version Count:** 107
- **Maintainers:** sindresorhus, samverschueren, itaisteinherz
- **Publisher:** sindresorhus
- **Engines:** Bun: >=1, Git: >=2.11.0, Node: >=20, npm: >=9, Pnpm: >=8, Yarn: >=1.7.0
- **Funding:** <https://github.com/sindresorhus/np?sponsor=1>
- **Integrity:** sha512-OBvNC8ipTHzRNY44opIUxptDaI1NukIBxVvof2vvLe8XLfw87TyfOdR6/QYSQEMqtRSL0XkNj0N/6Bsn//S6Qg==
- **Shasum:** 371887c97c2bfe1235477702daa4d2fc951f37eb
- **Unpacked Size:** 107,197
- **File Count:** 0
- **Created At:** 2012-09-08T09:02:02.876Z
- **Latest Published At:** 2026-05-12T17:04:00.979Z
- **Modified At:** 2026-05-12T17:04:01.107Z

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

- Nix - np: normalized package name match | nixpkgs package indexes: pkgs/by-name/np/np/package.nix from https://api.github.com/repos/NixOS/nixpkgs/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.
- [release-it](https://www.automicvault.com/zh-hans/pkg/npm/release-it/) - Local metadata places this package in an adjacent workflow. Shared terms: commit, git, github, info, inquirer.
- [semantic-release](https://www.automicvault.com/zh-hans/pkg/npm/semantic-release/) - Local package facts share a topical domain. Shared terms: commit, cosmiconfig, execa, git, github.
- [release](https://www.automicvault.com/zh-hans/pkg/npm/release/) - Local package facts share a topical domain. Shared terms: chalk, escape, escape-goat, git, github.

## 来源

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