We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 7d263b8 commit f186a76Copy full SHA for f186a76
1 file changed
scripts/nodejs/main.sh
@@ -57,7 +57,6 @@ function main {
57
if [[ "${PKG_DEBUG:-false}" == "false" ]]; then
58
INSTALLER_CMD+=" --quiet --errorlevel=0"
59
fi
60
- INSTALLER_CMD+=" install nodejs"
61
62
curl -sL https://dl.yarnpkg.com/rpm/yarn.repo | sudo tee /etc/yum.repos.d/yarn.repo
63
;;
@@ -67,6 +66,12 @@ function main {
67
66
curl -fsSL "$url" | sudo -E bash -
68
69
+ # TODO: Remove node source mirror workaround when works on CentOS distros
70
+ if [ "${ID,,}" == "centos" ]; then
71
+ curl -sL -o /tmp/nodejs.rpm "$(yumdownloader --urls nodejs -q)"
72
+ INSTALLER_CMD+=" install /tmp/nodejs.rpm"
73
+ fi
74
+
75
$INSTALLER_CMD
76
rm -rf ~/.yarn/
77
curl -o- -L https://yarnpkg.com/install.sh | bash
0 commit comments