Link to node-and-npm-in-30-seconds.
Those direction are a little outdated: the script assumes python2 is the default Python on the system. With this little tweak, you can install node as prescribed in the gist above by symlinking python to python2.
The benefit is that it may save you the trouble of combing through the comments thread in the original gist.
This only concerns the first gist. It's tested on Manjaro (based on Arch Linux), but it'll likely address the same issue for any Linux system that uses Python3 as default. I've used it myself from late 2014 onwards without problems.
- Add the following file to your home directory, inspect it.
- Update its permissions to executable:
chmod +x install-node.sh
- Then let it go:
./install-node.sh