-The nodejs package contains the nodejs binary as well as npm, so you don't need to install npm separately.
First, you need to install the PPA in order to get access to its contents. Make sure you’re in your home directory, and use curl to retrieve the installation script for your preferred version, making sure to replace…