Using Node.js without admin rights - sh: node: command not found
The linked guide doesn't really help for macOS or Linux because of the different file &amp; folder hierarchy compared to Winodws.

I recommend the followwing:


Download either the LTS or the latest version of node.js (both are direct download links!). Node.js download site: Downloads (no direct link).
Extract the node-v(ersion)x.y.z-darwin-x64.tar.gz and rename the resulting folder to node
Create a new folder bin in your home folder
Move the node folder to the bin folder
Add the following line to your .bash_profile:

export PATH="$PATH:$HOME/bin/node/bin"



There is no need to download npm additionally because it's already included in the node archive.



If you want to install a newer version simply download the new node-v(ersion)x.y.z-darwin-x64.tar.gz file, extract it and move its content to ~/bin/node/ replacing the old files and folders.