Dougal Campbell's geek ramblings

WordPress, web development, and world domination.

Monthly Archives: November 2010

Installing node.js on a Mac

For anyone else who might be interested, here are some quick-and-dirty instructions for how to install node.js and npm (node package manager) on Mac OS X, from the terminal. This assumes that you’ve already installed the XCode tools, and git: # Fetch and build node.js git clone git:// cd node ./configure make sudo make install # Now install the node package manager, npm: sudo chgrp -R staff /usr/local/{share/man,bin,lib/node} sudo chmod -R g+w /usr/local/{share/man,bin,lib/node} curl … Continue reading