Installing nodejs on Deepin OS

deepin 15.11 Desktop OS as of October 19, 2019

Switch to admin user.

sudo su -

Add reliable sources for the right flavor of Node v10.

echo "deb https://deb.nodesource.com/node_10.x jessie main" | tee -a /etc/apt/sources.list.d/nodesource.list

echo "deb-src https://deb.nodesource.com/node_10.x jessie main" | tee -a /etc/apt/sources.list.d/nodesource.list

Update apt to reference new source list, and then install Node.

apt update
apt install nodejs

Then exit out of admin impoersonation mode, and you're ready to go.

exit