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