Installing NodeJS on Deepin 20

Hello, follow the steps for installing NodeJS on Deepin 20. The repository has all versions and you can find it at : ' '. In this way the instructions below will follow for the installation of the latest stable version, at the time of this being NodeJS v15.

Download the installation file of the latest stable version of NodeJS via the command
:wget -O setup_nodejs.x

Edit the downloaded file
:nano setup_nodejs.x

Search for: DISTRO=$(lsb_release -c
-s)Switch to: DISTRO=bu
TRO=$(lsb_release -c -s)D

Now run installer:sudo
bash setup_nodejs.x

The following instructions will follow from the installer i
tself:sudo apt-get install gcc g++

makecurl -sL | sudo apt-key a

dd -echo "deb stable main" | sudo tee /etc/apt/sources.list.d/

stsudo apt-get update && sudo apt-get install yarn


Run: node -v
E be happy!