What is the difference between installing node.js with 'sudo apt-get install nodejs' or downloading the Linux Binaries (.tar.gz) and following these instructions?
Is the outcome the same?
14.04aptnodejssoftware installation
What is the difference between installing node.js with 'sudo apt-get install nodejs' or downloading the Linux Binaries (.tar.gz) and following these instructions?
Is the outcome the same?
Best Answer
Installing from source has one pitfall, that removing (and otherwise keeping track of installed files) becomes difficult. It's best to let the package manager handle the installation. You can use this PPA and then
apt-get
will get you the latest version.The PPA has since been moved to another source. The instructions from the NodeJS Github wiki:
The commands, condensed out from the script: