node.js Environment

Inspired by Micah P. Dombrowski's Node.js Environment.

FILENAME="node-v${NODEJS_VERSION}-linux-x64.tar.xz"
FILEURL="https://nodejs.org/dist/v${NODEJS_VERSION}/${FILENAME}"
curl -O https://nodejs.org/dist/v${NODEJS_VERSION}/SHASUMS256.txt
wget --progress=dot:giga ${FILEURL}
grep $FILENAME SHASUMS256.txt | sha256sum -c -
cp $FILENAME /results/
2.9s
nodejs (Bash)
mkdir -p /opt/nodejs
cd /opt/nodejs
tar -Jxf 
node-v14.16.0-linux-x64.tar.xz
ln -s node-v${NODEJS_VERSION}-linux-x64/ default
4.6s
nodejs (Bash)
/opt/nodejs/default/bin/node --version
2.2s
nodejs (Bash)
Runtimes (1)