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 jessie main" | tee -a /etc/apt/sources.list.d/nodesource.list

echo "deb-src 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 impersonation mode, and you're ready to go.