Back to Glossary

npm (Node Package Manager)

The default package manager for JavaScript and TypeScript, used to install, manage, and share code libraries.

npm is the package manager that comes with Node.js. It lets you install third-party libraries (packages) into your project, manage their versions, and share your own packages with the community. The npm registry hosts over 2 million packages covering everything from UI components to database drivers to utility functions.

Key commands every vibe coder uses: "npm install" (add a package), "npm run dev" (start the development server), "npm run build" (create a production build), and "npx" (run a package without installing it globally). The package.json file in your project root lists all dependencies and scripts.

When AI suggests using a library, verify it exists on npmjs.com before installing. Hallucinated package names are common. Also check the package's download count, last publish date, and GitHub stars to ensure it is actively maintained and widely used.

Related Courses

Links open the course details directly on the Courses page.