# Using Ubuntu curl -sL https://deb.nodesource.com/setup_13.x | sudo -E bash - sudo apt-get install -y nodejs # Using Debian, as root curl -sL https://deb.nodesource.com/setup_13.x | bash - apt-get install -y nodejs
Here is what the above code is Doing:
1. The first line of the script adds the NodeSource APT repository for Debian-based distributions.
2. The second line installs the Node.js package.
3. The third line installs the build-essential package which is required to compile native add-ons from npm.
4. The fourth line installs the Python software properties package which is also required to compile native add-ons from npm.