fix: update nodejs

This commit is contained in:
Jakub Panek
2026-01-24 01:37:02 +01:00
committed by GitHub
parent c7f3bf0ac9
commit 9bf5e40138
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -130,7 +130,7 @@ for ver in "${NODE[@]}"; do
wget "https://nodejs.org/download/release/latest-v${ver}.x/node-$VER-linux-$(node_arch).tar.xz" -O "node-$VER-linux-$(node_arch).tar.xz"
tar -Jxf "node-$VER-linux-$(node_arch).tar.xz" --strip-components=1 -C "$NODEPATH"
rm "node-$VER-linux-$(node_arch).tar.xz"
if [[ "${ver}" == "18" ]]; then # make this version the default (latest LTS)
if [[ "${ver}" == "24" ]]; then # make this version the default (latest LTS)
sed "s|^PATH=|PATH=$NODEPATH/bin:|mg" -i /etc/environment
fi
export PATH="$NODEPATH/bin:$PATH"