5

npx has a series search path , but when a command is chosen to run, I want to know exactly which binary was called.

Is there some thing like which command for npx?

intijk
  • 547
  • 4
  • 12
  • 1
    Does this answer your question? [How to find out which file NPX runs?](https://stackoverflow.com/questions/58443090/how-to-find-out-which-file-npx-runs) – CherryDT Sep 03 '22 at 07:57
  • When I ask this question, the which option is not there yet, glad it is implemented – intijk Oct 18 '22 at 23:13

1 Answers1

2

This command prints the path

npx which <cmd>
3r1d
  • 456
  • 1
  • 4
  • 12