Skip to content

Instantly share code, notes, and snippets.

@mrcat323
Last active January 20, 2023 12:15
Show Gist options
  • Save mrcat323/e7fd9a3b5f45ba13963664c3d52dc5c4 to your computer and use it in GitHub Desktop.
Save mrcat323/e7fd9a3b5f45ba13963664c3d52dc5c4 to your computer and use it in GitHub Desktop.
Nodejs installer for ubuntu server
#!/bin/bash
cd $HOME
mkdir -v nodejs-thing && cd $_
wget https://nodejs.org/dist/v18.13.0/node-v18.13.0-linux-x64.tar.xz
tar xvf node-v18* && mv -v node-v18*/* .
rm -Rv node-v18*
echo "export PATH='$HOME/nodejs-thing/bin:$PATH'" >> $HOME/.bashrc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment