Skip to content
Home
Dev Convert Generate Finance Calc Design Security Media

More categories

Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

GuidesBlogAPI & MCPCheatsheetsChangelog All categories

Browse

439 tools · 15 categories

Start here

Popular tools New this week 11 All tools 439

Categories

Developer Tools 91 Converters 65 Calculators 32 Finance Tools 32 Generators 31 Media Tools 27 Design Tools 25 Security Tools 25 Productivity 23 SEO Tools 18 Network Tools 17 Text Tools 16 Education Tools 15 PDF Tools 11 Mockups 9

Learn and build

Guides Cheatsheets Blog REST API MCP server Changelog

No matches here.

Keep FindUtils free Sponsors fund new tools
  1. Cheatsheets
Guides Blog API & MCP
Sponsor
FindUtils
Sponsor
  1. Home
  2. Cheatsheets
  3. Programming
  4. NPM Commands

Programming · Cheatsheet

NPM Commands Cheatsheet

Package management: install, update, publish, scripts, audit, and configuration

59 commands 9 sections

On this sheet

Project Setup 6 Installing Packages 8 Managing Packages 9 Running Scripts 7 Package Info & Search 7 Publishing & Versioning 8 Configuration & Cache 7 Security & Audit 6 Sources 1

No entry matches that filter.

Project Setup

  • npm init Initialize package.json interactively
  • npm init -y Initialize with defaults (skip prompts)
  • npm init @scope Run a create package (e.g., create-react-app)
  • npx create-next-app@latest Run package without installing globally
  • npm pkg set name="my-app" Set field in package.json
  • npm pkg get version Get field from package.json

Installing Packages

  • npm install Install all dependencies from package.json
  • npm install <pkg> Install and add to dependencies
  • npm install <pkg> --save-dev Install as dev dependency
  • npm install <pkg>@<version> Install specific version
  • npm install <pkg>@latest Install latest version
  • npm install -g <pkg> Install package globally
  • npm ci Clean install from lock file (CI/CD)
  • npm install --legacy-peer-deps Ignore peer dependency conflicts

Managing Packages

  • npm uninstall <pkg> Remove a package
  • npm update Update all packages to latest allowed
  • npm update <pkg> Update specific package
  • npm outdated Show packages needing updates
  • npm ls List installed packages (tree view)
  • npm ls --depth=0 List top-level packages only
  • npm ls <pkg> Check where a package is used
  • npm dedupe Reduce duplication in node_modules
  • npm prune Remove extraneous packages

Running Scripts

  • npm run <script> Run a script from package.json
  • npm start Run the start script
  • npm test Run the test script
  • npm run build Run the build script
  • npm run dev Run the dev script
  • npx <command> Run a package binary without global install
  • npm run lint -- --fix Pass extra arguments to script

Package Info & Search

  • npm view <pkg> Show package registry info
  • npm view <pkg> versions List all published versions
  • npm search <keyword> Search npm registry
  • npm info <pkg> dependencies Show package dependencies
  • npm docs <pkg> Open package documentation
  • npm repo <pkg> Open package repository
  • npm bugs <pkg> Open package issue tracker

Publishing & Versioning

  • npm login Authenticate to npm registry
  • npm publish Publish package to registry
  • npm publish --access public Publish scoped package as public
  • npm version patch Bump patch version (1.0.0 → 1.0.1)
  • npm version minor Bump minor version (1.0.0 → 1.1.0)
  • npm version major Bump major version (1.0.0 → 2.0.0)
  • npm deprecate <pkg>@<ver> "message" Deprecate a package version
  • npm unpublish <pkg>@<ver> Remove a published version

Configuration & Cache

  • npm config list Show current npm configuration
  • npm config set registry <url> Set custom registry URL
  • npm config get prefix Show global install directory
  • npm cache clean --force Clear npm cache
  • npm cache verify Verify cache integrity
  • npm root -g Show global node_modules path
  • npm doctor Run diagnostics on npm setup

Security & Audit

  • npm audit Check for known vulnerabilities
  • npm audit fix Auto-fix vulnerabilities
  • npm audit fix --force Fix vulnerabilities (breaking changes allowed)
  • npm audit --json Output audit results as JSON
  • npm token list List active authentication tokens
  • npm whoami Show currently logged-in user

Sources

  • https://docs.npmjs.com/cli/v11/commands/ npm CLI v11 reference: installation, scripts, publishing, configuration, and audit commands.

Related cheatsheets

  • Barcode Formats40 commands
  • JavaScript ES6+59 commands
  • Python Essentials59 commands

From FindUtils

More to explore

Products and services from the team behind FindUtils.

Promote your tool
Featured product seeranks.com SeeRanks — transparent product discovery A public ranking board where paid placement is always labeled and every product keeps its earned position. View SeeRanks Public rank board #1 Sponsored #2 #3 #4 Paid placement is always labeled Free favicon tool emojifavicons.com Emoji Favicons Turn any emoji into a favicon with one HTML line. SVG, PNG or ICO, no sign-up. <link rel="icon" href=".../🦊.svg"> Create a favicon
FindUtils service findutils.com Articles for software tools A sourced article for your channels, or a sponsored FindUtils publication with editorial review. Compare packages Domain portfolio findutils.com Domain names for sale .com.dev.sh.app.io Unused names across dev tools, AI, PDF and commerce. Make an offer. Browse the list Playable ranking towerscore.io TowerScore — stack the skyline Play to climb, or buy a floor. Paid floors are labeled. Open TowerScore

Missing a tool you need?

Tell us what to build next. Most requests ship as a free browser tool, an API endpoint and an MCP tool.

Request a tool
FindUtils

Free, fast utilities. Most tools process your files in the browser; lookup tools say what they send, and pages load analytics and ads.

  • No sign-up for free tools
  • Most tools run in your browser
  • 369 tools on the REST API, 369 on MCP

Tools

DevelopersConvertPDFDesignSecurityAll tools →

Learn

GuidesBlogCheatsheetsChangelog

Build

REST APIMCP serverAPI referenceWorkflowsStatus

FindUtils

AboutLibraries we useSponsorRequest a toolDomains for saleContact
© 2026 FindUtils PrivacyTermsSitemap
Service status
FindUtils

Free, fast utilities that respect your data. Most tools run in your browser.

Build with it

REST APIMCP serverGuidesChangelog

FindUtils

AboutSponsorPrivacyContact
Theme
© 2026 FindUtils Terms
FindUtils
Guides Blog REST API MCP server Changelog

Categories

Developers 91 Convert 65 Calculate 32 Finance 32 Generate 31 Media 27
All 15 categories →

Keep it free

Sponsorship keeps every tool free and funds the new ones we ship each week.

Sponsor Back the project
Tools API Sponsor