ubuntu
-
Open Terminal
-
Install NodeJS from one of the following sources:
-
nvm:
curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.5/install.sh | bashnvm install --lts -
sudo apt-get updatesudo apt-get install -y ca-certificates curl gnupgsudo mkdir -p /etc/apt/keyringscurl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key | sudo gpg --dearmor -o /etc/apt/keyrings/nodesource.gpgecho "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_16.x nodistro main" | sudo tee /etc/apt/sources.list.d/nodesource.listsudo apt-get updatesudo apt-get install -y nodejs
-
You might need to install
curlas well:sudo apt install curl
-
-
Install other dependencies:
Linux requires the X11 developement libraries and
libpngto build native Node modules.sudo apt install git python3 make g++ libx11-dev libxtst-dev libpng-dev
Notes
-
To build RPMs, you need
rpmbuild:sudo apt install rpm