npm Fundamentals npm (Node Package Manager) is the default package manager for Node.js and the world's largest software registry. Understanding it deeply - install flags, lock files, scripts, and the audit tools - is ess…
Readpackage.json Deep Dive package.json is the heart of every Node.js project. Beyond name and version, it contains exports, engines, scripts lifecycle hooks, workspace configuration, and dependency overrides. Understanding …
Readnpm Versioning & Publishing Semantic versioning, version ranges, and the publish workflow are essential knowledge for anyone maintaining a library or CLI tool. Understanding them also helps you manage dependencies respon…
Readnpm Interview Questions These questions come up in JavaScript, Node.js, and fullstack interviews. Deep knowledge of npm, dependencies, and the package ecosystem signals strong engineering judgment. 1. What is the differe…
Readnpm: Fundamentals & package.json npm is the default package manager for Node.js. It ships with Node.js and manages packages (libraries) for your project. package.json is the manifest file describing your project and its …
Readnpm: Managing Dependencies & Scripts Installing Packages # Install all dependencies npm install npm ci # CI — strict, uses lock file exactly # Add a dependency npm install express # adds to "dependencies" npm install typ…
Readnpm: Publishing Packages Authentication # Login to npm registry npm login # prompts for username/password/OTP npm login --scope=@myorg # login for org scope # Check current user npm whoami # Logout npm logout # Use acces…
Readnpm: Security, Auditing & Best Practices npm audit # Check for known vulnerabilities npm audit # full report npm audit --production # only production dependencies npm audit --json # JSON output for CI parsing npm audit -…
ReadSave this stack to your personal DevRecall — add your own notes, track what you're learning, and share what you know with the community.
Get started — free forever