Skip to content

Run Locally Installed NPM Library

View on Twitter

💡 Want to run a locally installed CLI library without adding it to npm scripts?

👉🏼 NPX will look into your node_modules/.bin/ folder before downloading from the web.

➡️ ./node_modules/.bin/eslint myfiles.js ❌
➡️ npx eslint myfile.js ✅

You might also like
Project Ideas List Read tip
Using ES Modules in Node.js Read tip
Sort Tailwind Classes Read tip