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
Practice Algorithms and Data Structures in JavaScript Read tip
Using ES Modules in Node.js Read tip
Companies That Provide Visa Sponsorship Read tip