Skip to content

Commit fa80714

Browse files
rgoulaisisaacs
authored andcommitted
npm checks only node.exe and not node on local dir
npm find local node.exe on windows, but relies on global node installation on linux. Added a test to check for a local installation of node before relying on the system wide installation. Close: #200
1 parent 1c2ca99 commit fa80714

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

bin/npm

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

1010
NODE_EXE="$basedir/node.exe"
11+
if ! [ -x "$NODE_EXE" ]; then
12+
NODE_EXE="$basedir/node"
13+
fi
1114
if ! [ -x "$NODE_EXE" ]; then
1215
NODE_EXE=node
1316
fi

0 commit comments

Comments
 (0)