Skip to content

Instantly share code, notes, and snippets.

@chayanforyou
Last active December 6, 2021 04:09
Show Gist options
  • Save chayanforyou/eb31f168d540fe8901f5004c42c0be7c to your computer and use it in GitHub Desktop.
Save chayanforyou/eb31f168d540fe8901f5004c42c0be7c to your computer and use it in GitHub Desktop.

You can download this file from the browser or from the console. The latter is shown below (note: the specific Node.js version might be different for you):

wget http://nodejs.org/dist/v14.15.0/node-v14.15.0-linux-x64.tar.gz
sudo tar -C /usr/local --strip-components 1 -xzf node-v14.15.0-linux-x64.tar.gz

You may find list of node version on http://nodejs.org/dist/

You should now have both Node.js and npm installed in “/usr/local/bin”. You can check this typing:

ls -l /usr/local/bin/node ls -l /usr/local/bin/npm

An alternative way to install Node.js via the package manager:

Installing Node.js via package manager

How To Remove Previously Installed Node.js

sudo apt-get purge nodejs
sudo apt-get autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment