leo / args

Toolkit for building command line interfaces
https://npmjs.com/args
MIT License
462 stars 30 forks source link

Subcommands doesn't work on windows subsystem linux (wsl) #131

Open SkReD opened 5 years ago

SkReD commented 5 years ago

Similar to issue https://github.com/leo/args/issues/88, but on wsl. Think problem is that it is not win32 platform, but still got the extension

wehrstedt commented 2 years ago

if anyone facing the same problem: I installed rimraf via npm install -g rimraf on my windows host. After that, I installed rimraf the same way in my WSL. It seems like the wsl distro uses the binary located on the windows host:

$ which rimraf
/mnt/c/Users/wehrstedt/AppData/Roaming/npm/rimraf

but the bin dir is correctly configured:

$ npm bin -g
/usr/bin

directly executing the bin fixes the problem for me ($ /usr/bin/rimraf). seems to be a weird windows path problem.