@anysphere/npm

中文文档
10.9.3-workspace.3发布于 2025/10/31Artistic-2.0CommonJS近 30 天下载 3804

a package manager for JavaScript

原始使用文档
文档目录6 节
  1. Requirements
  2. Installation
  3. Usage
  4. Links & Resources
  5. Acknowledgments
  6. FAQ on Branding

npm - a JavaScript package manager

npm version license CI - cli Benchmark Suite

Requirements

One of the following versions of Node.js must be installed to run npm:

  • 18.x.x >= 18.17.0
  • 20.5.0 or higher

Installation

npm comes bundled with node, & most third-party distributions, by default. Officially supported downloads/distributions can be found at: nodejs.org/en/download

Direct Download

You can download & install npm directly from npmjs.com using our custom install.sh script:

curl -qL https://www.npmjs.com/install.sh | sh

Node Version Managers

If you're looking to manage multiple versions of Node.js &/or npm, consider using a node version manager

Usage

npm <command>
  • Documentation - Official docs & how-tos for all things npm
    • Note: you can also search docs locally with npm help-search <query>
  • Bug Tracker - Search or submit bugs against the CLI
  • Roadmap - Track & follow along with our public roadmap
  • Community Feedback and Discussions - Contribute ideas & discussion around the npm registry, website & CLI
  • RFCs - Contribute ideas & specifications for the API/design of the npm CLI
  • Service Status - Monitor the current status & see incident reports for the website & registry
  • Project Status - See the health of all our maintained OSS projects in one view
  • Events Calendar - Keep track of our Open RFC calls, releases, meetups, conferences & more
  • Support - Experiencing problems with the npm website or registry? File a ticket here

Acknowledgments

  • npm is configured to use the npm Public Registry at https://registry.npmjs.org by default; Usage of this registry is subject to Terms of Use available at https://npmjs.com/policies/terms
  • You can configure npm to use any other compatible registry you prefer. You can read more about configuring third-party registries here

FAQ on Branding

Is it "npm" or "NPM" or "Npm"?

npm should never be capitalized unless it is being displayed in a location that is customarily all-capitals (ex. titles on man pages).

Is "npm" an acronym for "Node Package Manager"?

Contrary to popular belief, npm is not in fact an acronym for "Node Package Manager"; It is a recursive bacronymic abbreviation for "npm is not an acronym" (if the project was named "ninaa", then it would be an acronym). The precursor to npm was actually a bash utility named "pm", which was the shortform name of "pkgmakeinst" - a bash function that installed various things on various platforms. If npm were to ever have been considered an acronym, it would be as "node pm" or, potentially "new pm".

版本与发布记录

@anysphere/npm 共发布 4 个版本,首次发布于 2025/10/24;过去 12 个月发布了 0 个版本。

版本发布日期距今
10.9.3-workspace.3latest2025/10/311 年前
10.9.3-workspace.22025/10/311 年前
10.8.2-workspace.12025/10/241 年前
10.9.3-workspace.12025/10/241 年前

关于 @anysphere/npm 的常见问题

@anysphere/npm 是什么?

a package manager for JavaScript

如何安装 @anysphere/npm?

在项目目录运行 npm install @anysphere/npm,或使用 pnpm add / yarn add / bun add。它还提供命令行工具 npm、npx,可以用 npx npm 直接运行。

@anysphere/npm 支持 TypeScript 吗?

该包的 package.json 没有声明类型入口。需要类型提示时,可以在 npm 上查找社区维护的 @types/anysphere__npm 是否存在。

@anysphere/npm 支持 ESM 还是 CommonJS?

以 CommonJS 形式发布,可以直接 require();在 ES Module 项目中也可以用 import 引入(Node.js 会把 module.exports 作为默认导出)。

@anysphere/npm 需要什么版本的 Node.js?

package.json 的 engines 字段要求 Node.js ^18.17.0 || >=20.5.0。版本不符时 npm 默认只给出警告,开启 engine-strict 后会拒绝安装。

@anysphere/npm 可以商用吗?

@anysphere/npm 使用 Artistic-2.0 许可。声明的许可为 Artistic-2.0,请阅读许可原文确认使用条件。以上为概括,不构成法律意见,请以许可原文为准。

@anysphere/npm 的下载量有多少?

根据 npm 官方下载统计,@anysphere/npm 在 2026/10/06 – 2026/11/04 这 30 天内被下载 3,804 次,日均约 127 次。下载量会把 CI 构建、镜像同步和作为其他包依赖的安装一并计入,适合横向比较热度,不能直接等同于使用人数。

@anysphere/npm 还在维护吗?

最新版本 10.9.3-workspace.3 发布于 2025/10/31(1 年前);至今共发布 4 个版本,其中过去 12 个月发布了 0 个;首次发布于 2025/10/24。发布频率只是参考信号:功能稳定的工具可能很少需要更新,建议结合源码仓库的 issue 和提交记录判断。