Skip to content
This repository was archived by the owner on Aug 11, 2022. It is now read-only.

Commit 5ec72ab

Browse files
cebeiarna
authored andcommitted
scripts: Make install.sh find nodejs on debian
Credit: @cebe Reviewed-By: @iarna PR-URL: #18229
1 parent f4650b5 commit 5ec72ab

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

scripts/install.sh

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,11 @@ export npm_config_loglevel
5353
# make sure that node exists
5454
node=`which node 2>&1`
5555
ret=$?
56+
# if not found, try "nodejs" as it is the case on debian
57+
if [ $ret -ne 0 ]; then
58+
node=`which nodejs 2>&1`
59+
ret=$?
60+
fi
5661
if [ $ret -eq 0 ] && [ -x "$node" ]; then
5762
(exit 0)
5863
else

0 commit comments

Comments
 (0)