Bun and Deno are JavaScript/TypeScript runtimes with tooling, while npm is a Node-based package manager and command runner. Separate executing the application from installing its dependencies and invoking scripts.
The bun and deno npm packages distribute executable tooling. The npm package distributes the npm and npx commands for a compatible Node host. None is a browser application library merely because it is installed from npm.
Bun combines a JavaScript/TypeScript runtime with package management, testing and bundling tools. Those roles can be adopted separately; using its installer does not by itself mean every production process runs on Bun. Platform binaries and the actual APIs, addons and module behavior used by the application must fit the deployment.
Deno is a JavaScript, TypeScript and WebAssembly runtime with project, testing and dependency workflows. It supports npm and Node-oriented integration, but compatibility should be checked against the actual application rather than assumed from a general label. Runtime configuration and dependency resolution may differ from a conventional Node project.
Executing TypeScript syntax is not the same as type-checking it. Use the selected tool's checking workflow, such as a deliberate deno check step or a separate TypeScript checker where appropriate. A successful script execution does not prove all source types were checked.
npm installs packages, manages a lockfile and runs package scripts on a suitable Node host. Its current engines declaration accepts Node 22.22.2 within the Node 22 line, Node 24.15 within the Node 24 line, or Node 26 and newer. The application's own runtime requirements can be narrower.
Changing installers can affect dependency resolution, lockfiles and lifecycle scripts. Changing runtimes can affect module loading, native addons and runtime APIs. Treat those as separate migrations and verify each rather than exchanging commands across an entire repository at once.
Compare installation, development scripts, tests and deployment for the same workload. Retain a reproducible toolchain and check supported operating systems and architectures. No single speed claim establishes compatibility or makes a package manager a runtime.
Choose the Node package-management and script workflow when that ecosystem and lockfile behavior fit the project; npm is not a replacement runtime.
Choose its runtime, installer and related tooling when the application APIs, dependencies and deployment platform work with Bun.
Choose its runtime and project tooling when the module, configuration and Node-compatibility workflow match the application.
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.
npm comes bundled with node, & most third-party distributions, by default. Officially supported downloads/distributions can be found at: nodejs.org/en/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
If you're looking to manage multiple versions of Node.js &/or npm, consider using a node version manager
npm <command>
npm help-search <query>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/termsnpm to use any other compatible registry you prefer. You can read more about configuring third-party registriesnpm should never be capitalized unless it is being displayed in a location that is customarily all-capitals (ex. titles on man pages).
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".