Last active
January 20, 2023 12:15
-
-
Save mrcat323/e7fd9a3b5f45ba13963664c3d52dc5c4 to your computer and use it in GitHub Desktop.
Nodejs installer for ubuntu server
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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