From 3984c56b0926774cdbaaf2645de08714516374e9 Mon Sep 17 00:00:00 2001
From: Marco Tizzoni <marco.tizzoni@ecb.europa.eu>
Date: Tue, 19 Apr 2022 23:14:48 +0200
Subject: [PATCH] Use node in  and fallback to PATH if not found

---
 bin/npx | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/bin/npx b/bin/npx
index 4b58a104b9e42..a34e3459b5a70 100755
--- a/bin/npx
+++ b/bin/npx
@@ -12,6 +12,9 @@ case `uname` in
 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