npx

Package Managers

npm package runner - execute npm package binaries

Usage

npx <command> [options]

Options

--package, -p

Specify package to use

Type: option

--yes, -y

Skip confirmation prompts

Type: option

--no-install

Skip installation if package not found

Type: option

--help, -h

Show help

Type: option

Examples

Execute a package without installing

npx create-react-app my-app

Run a specific version of a package

npx -p @next/codemod@canary upgrade latest

Execute with yes flag

npx -y json-server --watch db.json