diff options
author | Raphael Goulais <raphael.goulais@f5c.fr> | 2019-06-05 13:43:47 +0300 |
---|---|---|
committer | isaacs <i@izs.me> | 2019-06-30 06:23:54 +0300 |
commit | 4bec4f11184b2108727542365535f0bed42c9a9d (patch) | |
tree | f8c8b986596659d5001218b705e2b8527010b429 /bin | |
parent | 57bef61bc009449ea5ba80ba7c09a97b9815aa3f (diff) |
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: https://github.com/npm/cli/pull/200
Diffstat (limited to 'bin')
-rwxr-xr-x | bin/npm | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -9,6 +9,9 @@ esac NODE_EXE="$basedir/node.exe" if ! [ -x "$NODE_EXE" ]; then + NODE_EXE="$basedir/node" +fi +if ! [ -x "$NODE_EXE" ]; then NODE_EXE=node fi |