2 ms·
I am not following how Make is a replacement for npx. Npx is just for us lazy command-line users who can't be bothered to make sure a Node package is installed
by yamtaddle 4y ago
I am not following how Make is a replacement for npx.
Npx is just for us lazy command-line users who can't be bothered to make sure a Node package is installed before trying to run a command, right? Make would either have to run npx itself, or you'd have to make sure the package you want to run was installed before running its command, in which case you can skip npx... but that's the same with or without make.
- Izkata 4y agoI don't know about npx specifically, but you can have the command recipe depend on the installed package, then have a first recipe to do the install only if it's missing. I do something like this with python and virtualenvs.