npm/pnpm/yarn Recipes
View CommandsInstall, update, and manage JavaScript packages. npm, pnpm, and yarn commands for dependency management.
8 recipes
Cache Management for Faster Installs
Optimize npm install times by understanding, managing, and leveraging the npm cache for local development and CI pipelines.
Understand and Manage package-lock.json
Master the package-lock.json file to ensure reproducible installs, resolve merge conflicts, and maintain a healthy dependency tree.
Set Up and Use Private npm Registries
Configure and publish to private npm registries using Verdaccio, GitHub Packages, or npm Teams for internal package distribution.
Publish Packages to npm Registry
Prepare, version, and publish npm packages to the public registry with proper metadata, access controls, and automated release workflows.
Advanced npm Scripts with Pre/Post Hooks
Automate build, test, and deployment workflows using npm scripts with lifecycle hooks, cross-platform commands, and script composition.
Audit and Fix Dependency Vulnerabilities
Scan your project for known security vulnerabilities in dependencies, understand severity levels, and apply fixes safely.
Semantic Versioning and Release Workflow
Use npm version commands to automate semantic versioning, generate git tags, and create a consistent release workflow for your packages.
Monorepo with npm Workspaces
Set up and manage a monorepo using npm workspaces to share code, dependencies, and scripts across multiple packages in a single repository.