Skip to content

Commit

Permalink
Bump node-gyp up to 9.4.0 for nodejs installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
ZIMkaRU committed Sep 13, 2023
1 parent 0cd3eab commit ea0278f
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions scripts/helpers/install-nodejs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ script as required NodeJS version!${COLOR_NORMAL}" >&2
exit 1
fi

version="${1:-"16.20.0"}"
version="${1:-"18.17.1"}"

echo -e "\n${COLOR_BLUE}Installing the NodeJS v$version...${COLOR_NORMAL}"

Expand All @@ -25,11 +25,7 @@ unlink /usr/local/CHANGELOG.md
unlink /usr/local/LICENSE
unlink /usr/local/README.md

# https://github.com/npm/npm/issues/4531
npm config set unsafe-perm true

npm cache clear --force
npm install --global node-gyp@9.1.0
npm config set node_gyp $(npm prefix -g)/lib/node_modules/node-gyp/bin/node-gyp.js
npm install --global node-gyp@9.4.0

echo -e "\n${COLOR_GREEN}The NodeJS has been installed successful${COLOR_NORMAL}"

0 comments on commit ea0278f

Please sign in to comment.