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 : ' https://github.com/nodesource/distributions/tree/master/deb '. 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 https://deb.nodesource.com/setup_current.x -O setup_nodejs.x

Edit the downloaded file
:nano setup_nodejs.x

Search for: DISTRO=$(lsb_release -c
-s)Switch to: DISTRO=bu
sterThus:#DIS
TRO=$(lsb_release -c -s)D
ISTRO=buster

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 https://dl.yarnpkg.com/debian/pubkey.gpg | sudo apt-key a

dd -echo "deb https://dl.yarnpkg.com/debian/ stable main" | sudo tee /etc/apt/sources.list.d/yarn.li

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

Ready!

Run: node -v
E be happy!