cli README

The project's README from github.com/npm/cli. As one markdown file: README.md.

npm - a JavaScript package manager

Requirements

You should be running a currently supported version of Node.js to run npm. For a list of which versions of Node.js are currently supported, please see the Node.js releases page.

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>

Acknowledgments

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 an acronym for "Node Package Manager." It is a recursive backronymic abbreviation for "npm is not an acronym" (if the project were 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 ever considered an acronym, it would be as "node pm" or, potentially, "new pm".

cli (npm/cli)

Searching Database…

10.2K ·GitHub
What is this?This is the source code for npm, the default package manager for JavaScript — the command-line tool you use to install and manage packages in a project.
Is this repo the CLI itself, or the npm registry and website?It's the CLI itself — the client that installs and manages packages. The npm registry and website are separate services; this is the command-line program that talks to them.
How do I get npm onto my machine?You likely already have it: npm comes bundled with Node.js and most third-party distributions. Otherwise install it from npmjs.com via their install.sh script, or use a Node version manager.
Do I need a specific version of Node.js to run it?Yes — npm needs a currently supported Node.js release; this version's engines field requires Node 22.22.2+, 24.15.0+, or 26+, so older Node installs must upgrade first.
Is npm an acronym for 'Node Package Manager'?No — contrary to popular belief, npm is a recursive backronym: 'npm is not an acronym'. Its precursor was a bash utility called 'pm', short for pkgmakeinst, which installed various things on various platforms.
Should it be written as npm or NPM?Always lowercase: the project asks that npm never be capitalized unless it appears in a context that is customarily all-capitals, like titles on man pages.
Creator
npm
Size
175.3 MB
Stars
10.2K
Age
8y
Commits · 90 Days