What the heck is npx?

If you haven’t lived under a rock for a couple of years, you must have stumbled upon npm, the standard node package manager, in one way or another. Granted, there is a new faster kid on the block, yarn, but npm is still the old trusty we rely on when all else fails.

The problem with npm is binaries. Many CLI tools are packaged into the node repository as node modules, and to use them you have to either install them globally or locally in the project. Many, lika create-react-app are only used once and the forgotten. If you keep it global, you must remember to update (ie reinstall it) before use.

npx solves this for download-install-run-remove scenarios.  Really very useful!

Read all the details in this excellent article:

Introducing npx: an npm package runner

Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.