Project

General

Profile

Support #862

Install Nodejs 0.10 From Source on FreeBSD

Added by Daniel Curtis about 8 years ago. Updated about 8 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Web Server
Target version:
Start date:
10/24/2016
Due date:
% Done:

100%

Estimated time:
1.00 h
Spent time:

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
    

Resources

Also available in: Atom PDF