Note: This tutorial is intended for Linux Users
Install node.js on Linux
The Linux operating system has hundreds of different distributions because of the diversity it provides. And users love to customize and harness different versions’ specific functionalities using distinct distributions.
This guide assumes that you are using Ubuntu 20.04. Before you begin, you should have a non-root user account with sudo
privileges set up on your system. You can learn how to do this by following the Ubuntu 20.04 initial server setup tutorial
Step 1: Open your terminal or press Ctrl + Alt + T.
Step 2: To install node.js use the following command:
sudo apt install nodejs
Step 3: Once installed, verify it by checking the installed version using the following command:
node -v or node –version
Note:
It is recommended to install Node Package Manager(NPM) with Node.js. NPM is an open source library of Node.js packages.
To install NPM, use the following commands:
sudo apt install npm
npm -v or npm –version
npm install -g @joystream/cli
When it finishes, terminal shows 0 vulnerabilities like in picture above