大芡猫
大芡猫
I did some more testing and found the cause. In Windows, node creates a `*.cmd` file in `%USERPROFILE%\AppData\Roaming\npm` for each global module command. While the native cmd.exe doesn't need the...
I would try to emulate what the cmd does: 1. Load all folder paths specified by `PATH` environment variable 2. Search executable by file name in those folders 3. Spawn...
@rabchev Check out this package: https://www.npmjs.org/package/which Found it when working on another project. It should do the trick.