libnpmexec

Run npm packages as one-off commands without installing them globally

npmmacoslinuxwindows
Try with needOr install directly
Source

About

npm exec (npx) programmatic API

Examples

run a package command without installing it globally$ npx create-react-app my-app
execute a package from npm registry directly$ npx lodash-cli head array.js
run a local script from node_modules bin directory$ npx mocha test/**/*.test.js
execute package with specific version$ npx @angular/cli@12 new my-project
run a package command in current project context$ npx webpack --config webpack.custom.js