Skip to content

Instantly share code, notes, and snippets.

@enemyers
Last active March 2, 2022 04:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save enemyers/2a3ca80f995f2edc66dbedbade6e56ea to your computer and use it in GitHub Desktop.
Save enemyers/2a3ca80f995f2edc66dbedbade6e56ea to your computer and use it in GitHub Desktop.
Install manually NodeJS binary on all linux distribution.
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