nodenv
is a great tool, but its installation on Ubuntu is never smooth for me.
Here are instructions to install nodenv along with node-build and node-aliases plugins.
ℹ️ note - nodenv recommands updating the PATH though not all programs run in a shell. i prefer adding symlinks to the nodenv binary and shims to make it available everywhere.
The script can be pasted into a terminal as is
# install the base app