Update node to 16.13.1

useful for using stream.promises
This commit is contained in:
Girish Ramakrishnan
2021-12-14 20:49:10 -08:00
parent e7f94b6748
commit a3280a0e30
3 changed files with 5 additions and 3 deletions

View File

@@ -115,13 +115,13 @@ if ! which sshfs; then
fi
log "updating node"
readonly node_version=14.17.6
readonly node_version=16.13.1
if [[ "$(node --version)" != "v${node_version}" ]]; then
mkdir -p /usr/local/node-${node_version}
$curl -sL https://nodejs.org/dist/v${node_version}/node-v${node_version}-linux-x64.tar.gz | tar zxvf - --strip-components=1 -C /usr/local/node-${node_version}
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-14.15.4
rm -rf /usr/local/node-14.17.6
fi
# this is here (and not in updater.js) because rebuild requires the above node