

Save the file and from the console run node server.js Once Homebrew is installed you can go ahead and install Node.js brew install nodeĮasy! Now create a file called server.js and paste in the example server code var http = require('http') Xcode is available for free - it is a pretty hefty download but you’ll need it. You will need to install Developer Tools for Mac which you are installed as part of Xcode. Instructions for installing Homebrew are in the README so I won’t repeat them here. Written in Ruby it allows you to quickly and easily compile software on your Mac. Homebrew is the package manager that Apple forgot. To install from source you probably know what you are doing but this article might help. Update: There are now packages available for OSX and Windows if you prefer a one click install for Node.js and NPM. Here's a quick overview of how to get Node.js working on OSX along with npm, the package manager for node.Įstimated reading time: 2 minutes Table of contents Last updated Saturday, Setting up Node.js and npm on Mac OSX Node.js is gaining a lot of speed and is an exciting new development framework.

Setting up Node.js and npm on Mac OSX | George Ornbo
