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
Node.js Port Already in Use Read tip
Quick Server for Incoming Webhooks Read tip
Debug Srcset and Sizes Attributes in Images Read tip