I have having a bit of an issue with installing nodejs and npm on my linux server (which is a pi running raspbian). I had everything set up and running using
su
Below are the simple steps to proceed with the installation
For reference: https://youtu.be/DGjfw4y0nTI