@JS's Notes

Site with notes from my work.

Installing node.js in Linux

2019-10-05 System Programing @JS

Requirements: user with root privileges or non-root user with sudo privileges.

# Ubuntu/Debian
$ sudo curl -sL https://deb.nodesource.com/setup_12.x | sudo -E bash -
$ sudo curl -sL https://deb.nodesource.com/setup_11.x | sudo -E bash -
$ sudo curl -sL https://deb.nodesource.com/setup_10.x | sudo -E bash -
$ sudo apt install nodejs -y

# Centos/Fedora/RHEL
$ sudo curl -sL https://rpm.nodesource.com/setup_12.x | bash -
$ sudo curl -sL https://rpm.nodesource.com/setup_11.x | bash -
$ sudo curl -sL https://rpm.nodesource.com/setup_10.x | bash -
# Centos
$ sudo yum install nodejs -y
# Fedora/RHEL
$ sudo dnf -y install nodejs