Dev

📦 npm

Node.js package registry — search and install 2M+ open-source JavaScript packages

🔗 Go to npm
Category
Dev
Developer
npm, Inc. (GitHub)
Free Plan
✅ 있음
Language
English

About

npm is the default package manager for Node.js and the world's largest JavaScript package registry, hosting over 2 million packages. Search for libraries like React, Express, or Lodash and add them to your project with a single 'npm install' command. npm comes bundled with Node.js, so no separate installation is needed.

Key Features

💡 Tips

  • Use --save-dev (-D) for development-only packages (like testing tools) to keep them out of your production bundle.
  • Run 'npm audit' to check for known security vulnerabilities, and 'npm audit fix' to apply automatic patches.
  • Before choosing a package, check its weekly downloads, last publish date, and open issues on the npm page to ensure it's actively maintained.

Frequently Asked Questions

Is npm free?

Publishing and using public packages is completely free. Private package hosting requires a paid plan.

How does it compare to yarn or pnpm?

npm is the built-in Node.js package manager; yarn and pnpm are alternatives optimized for speed or disk efficiency. All three use the npm registry under the hood.

Why does package-lock.json exist?

It locks exact dependency versions so every developer and CI environment installs the exact same package tree. Always commit it to version control.