Skip to content

Commit a677f49

Browse files
elibusMarco Tizzoni
andauthored
fix: Use node in and fallback to PATH if not found (#4778)
Co-authored-by: Marco Tizzoni <[email protected]>
1 parent 252a02c commit a677f49

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/npx

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ case `uname` in
1212
esac
1313

1414
NODE_EXE="$basedir/node.exe"
15+
if ! [ -x "$NODE_EXE" ]; then
16+
NODE_EXE="$basedir/node"
17+
fi
1518
if ! [ -x "$NODE_EXE" ]; then
1619
NODE_EXE=node
1720
fi

0 commit comments

Comments
 (0)