Socket
Socket
Sign inDemoInstall

npm

Package Overview
Dependencies
203
Maintainers
6
Versions
544
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

npm

a package manager for JavaScript


Version published
Maintainers
6
Weekly downloads
5,075,125
decreased by-10.35%

Weekly downloads

Package description

What is npm?

The npm package 'npm' is the package manager for Node.js. It allows users to install, update, and manage dependencies for Node.js applications. It also provides tools for package discovery, publishing, and managing a local development environment.

What are npm's main functionalities?

Package Installation

Installs the 'express' package and its dependencies into the node_modules directory.

npm install express

Package Update

Updates the 'lodash' package to the latest version according to the versioning in package.json.

npm update lodash

Package Removal

Removes the 'moment' package from the node_modules directory and updates the package.json.

npm uninstall moment

Listing Installed Packages

Lists the top-level packages installed in the node_modules directory.

npm list --depth=0

Running Scripts

Runs the 'test' script specified in the package.json file.

npm run test

Publishing a Package

Publishes the current package to the npm registry, making it available for others to install.

npm publish

Other packages similar to npm

Readme

Source

GitHub Workflow Status (branch) Coveralls github branch

npm - a JavaScript package manager

Requirements

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

  • 12.x.x >= 12.13.0
  • 14.x.x >= 14.15.0
  • 16.0.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 &/or npm, consider using a "Node Version Manager" such as:

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
  • Feedback - 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".

Keywords

FAQs

Last updated on 20 Jan 2022

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc