diff --git a/scripts/helpers/install-nodejs.sh b/scripts/helpers/install-nodejs.sh index 47dddcc2..dbde52c4 100755 --- a/scripts/helpers/install-nodejs.sh +++ b/scripts/helpers/install-nodejs.sh @@ -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}" @@ -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}"