Last active
March 2, 2022 04:16
-
-
Save enemyers/2a3ca80f995f2edc66dbedbade6e56ea to your computer and use it in GitHub Desktop.
Install manually NodeJS binary on all linux distribution.
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
download https://nodejs.org/dist/v12.16.2/node-v12.16.2-linux-x64.tar.xz | |
$ cd Downloads/ | |
$ tar -xJvf node-v12.16.2-linux-x64.tar.xz | |
$ sudo mkdir /usr/local/lib/nodejs | |
$ mv node-v12.16.2-linux-x64 node-v12.16.2 | |
$ sudo mv node-v12.16.2 /usr/local/lib/nodejs | |
$ sudo nano ~/.profile | |
copy this on end of text ~/.profile: | |
#nodejs | |
export NODEJS_HOME=/usr/local/lib/nodejs/node-v12.16.2 | |
export PATH=$NODEJS_HOME/bin:$PATH | |
refresh profile: | |
$ . ~/.profile | |
check node, npm and npx version: | |
node -v | |
npm -v | |
npx -v |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment