node: update to 18.16.0

This commit is contained in:
Girish Ramakrishnan
2023-05-11 08:16:40 +02:00
parent e83bb0c639
commit c55152c0e1
2 changed files with 5 additions and 4 deletions

View File

@@ -115,7 +115,8 @@ elif [[ "${ubuntu_version}" == "18.04" ]]; then
fi
fi
readonly node_version=16.18.1
readonly old_node_version=16.18.1
readonly node_version=18.16.0
if ! which node 2>/dev/null || [[ "$(node --version)" != "v${node_version}" ]]; then
log "installing/updating node ${node_version}"
mkdir -p /usr/local/node-${node_version}
@@ -124,7 +125,7 @@ if ! which node 2>/dev/null || [[ "$(node --version)" != "v${node_version}" ]];
rm /tmp/node.tar.gz
ln -sf /usr/local/node-${node_version}/bin/node /usr/bin/node
ln -sf /usr/local/node-${node_version}/bin/npm /usr/bin/npm
rm -rf /usr/local/node-16.14.2
rm -rf /usr/local/node-${old_node_version}
fi
# obsolete module