Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/npm/cli.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorRaphael Goulais <raphael.goulais@f5c.fr>2019-06-05 13:43:47 +0300
committerisaacs <i@izs.me>2019-06-30 06:23:54 +0300
commit4bec4f11184b2108727542365535f0bed42c9a9d (patch)
treef8c8b986596659d5001218b705e2b8527010b429 /bin
parent57bef61bc009449ea5ba80ba7c09a97b9815aa3f (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-xbin/npm3
1 files changed, 3 insertions, 0 deletions
diff --git a/bin/npm b/bin/npm
index 5acd6fb61..4183703a7 100755
--- a/bin/npm
+++ b/bin/npm
@@ -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