There are different ways to install it, one is from the official page and the other from the repositories, both being very easy to do, but this time I will explain how to install it from nodejs.org
STEPS AND DISCHARGE
On the page we can see 2 versions, one LTS and another current, we choose the one that suits us.
In my case I downloaded the current one, for which they will save the file in a folder where they do not move it, preferably in the personal folder and create a folder for their programs but starting with '.' to hide it and avoid later problems.
In my case, the folder where I saved is: /home/jose/.Programs/nodejs (The folder must create it)
The PATH_NODE does not end in '/'
In this way you can install NodeJS in deepin, if you liked the tutorial or have any questions about what is explained here, do not hesitate to leave us a comment.