npm run <script>Run a package.json script.
Run custom package scripts and understand lifecycle behavior.
npm run <script>Run a package.json script.
npm run --silent <script>Reduce npm log noise when running scripts.
npm run build -- --watchPass additional arguments after `--`.
npm testShortcut for `npm run test`.
npm startShortcut for `npm run start`.
npm stopShortcut for `npm run stop`.
npm rebuildRebuild packages with install scripts or native addons.
Initialize and inspect npm workspaces.
npm init -w packages/app -yCreate a workspace and update the root workspaces list.
npm install --workspacesRun install across all configured workspaces.
npm run build --workspacesRun a script in all workspaces.
npm run test --workspace=@acme/appRun a script for one specific workspace.
npm run build --workspaces --include-workspace-rootRun scripts in workspaces and the root package.
Use npm exec and package binaries in mono-repos.
npm exec eslint .Run a local binary inside the project context.
npm exec --package cowsay -- cowsay helloDownload a package temporarily and run its binary.
npm create vite@latest my-appUse create-* scaffolding through npm.
Commands related to lifecycle hooks and script troubleshooting.
npm install --foreground-scriptsSurface script output directly in the terminal.
npm run lint --if-presentAvoid failing when a script is missing.
npm config set ignore-scripts trueTurn off lifecycle scripts globally or locally.