Suggest an editImprove this articleRefine the answer for “How does npx differ from npm?”. Your changes go to moderation before they’re published.Approval requiredContentWhat you’re changing🇺🇸EN🇺🇦UAPreviewTitle (EN)Short answer (EN)**npm** is a package manager: it **installs, updates, and removes dependencies**, and **runs scripts** from `package.json`. **npx** is a package runner: it **runs npm packages without requiring an install**, or looks up and runs local binaries in `node_modules/.bin`. **Key point:** npm installs packages, npx runs them, that is the key difference.Shown above the full answer for quick recall.Answer (EN)ImageThe difference is in purpose: - **npm** is a package manager. It **installs, updates, and removes dependencies**, and **runs scripts** from `package.json`. - **npx** is a package runner. It **runs npm packages without requiring an install**, or looks up and runs local binaries in `node_modules/.bin`. --- ### The practical difference | Action | npm | npx | |---|---|---| | Install, then run | required | not required | | Run a local binary | indirectly (via `npm run`) | directly | | Run a one-off CLI command | inconvenient | convenient and fast | --- ### Example of the difference With npm: ```bash npm install create-react-app -g create-react-app my-app ``` With npx: ```bash npx create-react-app my-app ``` The second option does not install the package permanently, it is downloaded to a temporary directory, run, and removed. --- ### Summary - **npm installs packages.** - **npx runs packages.** That is the key difference.For the reviewerNote to the moderator (optional)Visible only to the moderator. Helps review go faster.