Skip to content

Commit

Permalink
scripts: Make install.sh find nodejs on debian
Browse files Browse the repository at this point in the history
Credit: @cebe
Reviewed-By: @iarna
PR-URL: npm/npm#18229
  • Loading branch information
cebe authored and iarna committed Aug 19, 2017
1 parent f4650b5 commit 5ec72ab
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scripts/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,11 @@ export npm_config_loglevel
# make sure that node exists
node=`which node 2>&1`
ret=$?
# if not found, try "nodejs" as it is the case on debian
if [ $ret -ne 0 ]; then
node=`which nodejs 2>&1`
ret=$?
fi
if [ $ret -eq 0 ] && [ -x "$node" ]; then
(exit 0)
else
Expand Down

0 comments on commit 5ec72ab

Please sign in to comment.