This is a portable nodejs installer with no dependencies other than shell. It is based on an original by fhemberger but changed so that it works on:
- Ubuntu 13, 14
- Debian 5, 6, 7
- OS-X v 10.9
Usage:
$ git clone https://gist.github.com/309a1594e891dec70461.git
$ cd 309a1594e891dec70461/
$ sudo sh node-installer.sh
or as a curl one-liner:
# curl "https://gist.githubusercontent.com/bitdivine/309a1594e891dec70461/raw/4a96a04dfa179eee531647347c485a8750b9ea66/install-nodejs.sh" | tee node-installer.sh | sh
Original notes:
Starting with node v0.8.6, we're gonna be releasing official binary tarballs of the releases for the most common platform+architecture combos.
Here's a simple script that will install the latest stable node using a simple curl | tar
piping. By default the files will get installed into your HOME directory. Change the PREFIX variable to /usr/local
if you're feeling ambitious (note: you may need to run this as root
depending on the PREFIX).