Support #862
Install Nodejs 0.10 From Source on FreeBSD
Description
With www/node010 now removed from the FreeBSD ports tree, I am unable to support one of my legacy node.js apps on FreeBSD 10. Luckily compiling node.js is a simple process. This is a guide on compiling Node.js 0.10 on FreeBSD 10.
Prepare the Environment¶
- Make sure the system is up to date:
pkg update && pkg upgrade
- Install a few dependencies:
pkg install gcc48 git gmake libexecinfo llvm38 python
Install Node.js 0.10¶
- Download the v0.10.40-release (latest to date) branch of node.js:
git clone -b v0.10.40-release --depth 1 https://github.com/nodejs/node.git cd node
- Compile and install nodejs:
./configure gmake gmake install
Install NPM¶
- Download the npm install script and run it:
fetch https://www.npmjs.com/install.sh sh install.sh