How to Install Node.js on Gentoo Gnu/Linux

August 29, 2019 | By the+gnu+linux+evangelist.

Installing

  1. 2. Downloading NodeJs

    Download Latest Node.js Binaries for Linux.

    Linux node.js tar.gz
  2. 3. Installing NodeJs

    Now to Install Node.js on Gentoo
    First, access the Download location by default with:

    cd ~/Downloads

    To Check it’s there List the contents with:

    ls . | grep node

    The grep Command refine the output List showing only the Entries matching the Keyword.
    But if you are in Trouble to Find the Location on Terminal then See: How to Access Downloads Folder from Browser.
    Then Extract it directly into the Target with:

    su -c "tar -xvzf ./node-v19.3.0-linux-x64.tar.gz -C /usr/local"

    Now to Rename it run:

    su -c "mv /usr/local/node* /usr/local/node"

    Last to Set the SuperUser as owner:

    su -c "chown -R root:root /usr/local/node"

Contents


QuickChic Theme • Powered by WordPress