zkat/npx

How to tell what binary gets executed?

jankalfus opened this issue · 0 comments

If I run for example:
npx tsc -v

How do I tell what binary gets executed?

As far as I can see there is no argument to ask npx what it'll do. Will it execute a locally installed package, or pull a package from the registry etc.? It would be really helpful to see what will happen and not just run npx and hope for the best. Or maybe at least adding a verbose output switch would be helpful. This kind of magic makes me cringe.