Steps to download and install node in ubuntu

  • Download latest or recommended node xxx.tar.xz file from https://nodejs.org/en/

  • Go to the directory in which (.tar.xz file) is downloaded.

  • Update System Repositories: 
    • sudo apt update

  • Install the package xz-utils
    • sudo apt install xz-utils

  • To Extract the .tar.xz file
    • sudo tar -xvf name_of_file

  • Copy to /usr folder
    • sudo cp -r directory_name/{bin,include,lib,share} /usr/

  • Check installed node version
    • node --version


No comments:

Post a Comment