diff options
Diffstat (limited to 'deps/npm/bin/npx')
-rw-r--r-- | deps/npm/bin/npx | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/deps/npm/bin/npx b/deps/npm/bin/npx index 261e339850..3516c8c415 100644 --- a/deps/npm/bin/npx +++ b/deps/npm/bin/npx @@ -8,6 +8,10 @@ case `uname` in esac NODE_EXE="$basedir/node.exe" +if [ -x "$NODE_EXE" ] && [ -f "/bin/wslpath" ]; then # run the corresponding command prompt when Node for Windows is executed within WSL + cmd.exe /c `wslpath -w "$basedir/npx.cmd"` "$@" + exit $? +fi if ! [ -x "$NODE_EXE" ]; then NODE_EXE=node fi |