Install on MAC - pengj/Node-Memo GitHub Wiki

install HomeBrew

/usr/bin/ruby -e "$(/usr/bin/curl -fsSL https://raw.github.com/mxcl/homebrew/master/Library/Contributions/install_homebrew.rb)"

install node.js

brew install node

install nmp

curl http://npmjs.org/install.sh | sh

install express

npm install -g express

create a express project

express /path/to/project cd /path/to/project npm install -d

run express project

node app.js

install mongoose

npm install mongoose

install mongodb

npm update npm install mongodb

run mongodb

If this is your first install, automatically load on login with: mkdir -p ~/Library/LaunchAgents cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

If this is an upgrade and you already have the homebrew.mxcl.mongodb.plist loaded: launchctl unload -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist cp /usr/local/Cellar/mongodb/2.0.6-x86_64/homebrew.mxcl.mongodb.plist ~/Library/LaunchAgents/ launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mongodb.plist

Or start it manually: mongod run --config /usr/local/etc/mongod.conf

The launchctl plist above expects the config file to be at /usr/local/etc/mongod.conf.