NPX - Package Execution in NPM

From the NPM Package Manager cheat sheet ยท Project Setup & Initialization ยท verified Jul 2026

NPX - Package Execution

Execute packages without installing globally

bash
# Run package without installing
npx create-react-app my-app
npx eslint .
npx prettier --write .

# Run specific version
npx node@14 index.js
npx webpack@4 build

# Run from GitHub
npx github:user/repo

# Run local binary
npx mocha test/

# Clear npx cache
npx clear-npx-cache
๐ŸŸข Essential - Run packages without global install
๐Ÿ’ก Great for one-time use tools
โšก Always uses latest version unless specified
๐Ÿ“Œ Packages are temporarily downloaded and cached
๐Ÿ”— Related: npm exec is the same as npx
npxexecution

Continue with NPM Package Manager

Save the full cheat sheet or work through every related task.

More NPM tasks

Back to the full NPM Package Manager cheat sheet