matklad / xshell

Apache License 2.0
695 stars 28 forks source link

Failure on Windows when running `npm ...` #82

Open stefnotch opened 7 months ago

stefnotch commented 7 months ago

The following script works perfectly fine on Linux systems, but will fail on Windows (command not found)

cmd!(sh,"npm --help").run()?;

The reason for that seems to be related to https://github.com/rust-lang/rust/issues/42791

I'm not sure if there's an easy fix for this at all, but I figured that it would be worthwhile to at least open an issue for it. This way, it's at least documented somewhere.

vsrs commented 3 months ago

I faced with the same problem and looks like the fix exists. Working on it.