PHPFixing
  • Privacy Policy
  • TOS
  • Ask Question
  • Contact Us
  • Home
  • PHP
  • Programming
  • SQL Injection
  • Web3.0

Thursday, November 10, 2022

[FIXED] How to install nodejs on redhat without internet and without root permission?

 November 10, 2022     linux, node.js, redhat     No comments   

Issue

What is the best way that Node.js can be installed on linux without internet nor root permissions. So far I just downloaded the source tar.gz and tar.xz files.


Solution

To install nodejs on linux without root permission and offline

Download the tar.xz from Linux Binaries(x64) @ https://nodejs.org/en/download/

Then in ~.bashrc add:

NODE_HOME=~/apps/node-v12.18.3-linux-x64
PATH=$NODE_HOME/bin:$PATH

Source the bashrc file or restart terminal and you are done

source .bashrc

Try

node --version
npm -v


Answered By - Youssef Mohamed
Answer Checked By - Cary Denson (PHPFixing Admin)
  • Share This:  
  •  Facebook
  •  Twitter
  •  Stumble
  •  Digg
Newer Post Older Post Home

0 Comments:

Post a Comment

Note: Only a member of this blog may post a comment.

Total Pageviews

Featured Post

Why Learn PHP Programming

Why Learn PHP Programming A widely-used open source scripting language PHP is one of the most popular programming languages in the world. It...

Subscribe To

Posts
Atom
Posts
Comments
Atom
Comments

Copyright © PHPFixing