Node Package Managers

NPM, Yarn, and PNPM commands for Node.js package management

20 commands

Commands

20 commands available
Resources

Master NPM

Become proficient in package management

npm

Install Package

Install a package from the registry

npm install <package>
dependency
install
npm

Uninstall Package

Remove a package

npm uninstall <package>
dependency
remove
npm

Initialize Project

Create a package.json file

npm init
project
setup
npm

Run Script

Execute package scripts

npm run <script>
scripts
automation
npm

Update Packages

Update packages to latest versions

npm update
dependency
update
npm

Check Outdated Packages

Check for outdated packages

npm outdated
dependency
check
npm

Security Audit

Scan for vulnerabilities

npm audit
security
audit
npm

List Installed Packages

View installed dependencies

npm list
dependency
info
npm

Search Packages

Search npm registry

npm search <term>
registry
search
npm

Publish Package

Publish to npm registry

npm publish
publish
registry
npm

Login to Registry

Authenticate with npm

npm login
authentication
registry
npm

Link Package

Symlink a package folder

npm link
development
symlink
npm

Clean Install

Install with clean slate

npm ci
install
ci
npm

Execute Package Binaries

Run package binaries

npm exec <command>
execute
binaries
npm

Open Documentation

View package documentation

npm docs <package>
documentation
help
npm

Open Repository

View package repository

npm repo <package>
repository
github
npm

Yarn Install

Install packages with Yarn

yarn install
yarn
install
dependencies
npm

Yarn Workspaces

Manage monorepo workspaces

yarn workspace
yarn
workspace
monorepo
npm

PNPM Install

Install packages with PNPM

pnpm install
pnpm
install
efficient
npm

PNPM Workspace

Manage PNPM workspaces

pnpm workspace
pnpm
workspace
monorepo