# Install node.js via Homebrew
brew install node
# Install package manager for node.js
brew install npm
# Example: install express framework for node.js
npm install express
# Specify paths in bash
export NODE_PATH="/usr/local/lib/node"
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:/usr/local/share/npm/bin:$PATH"
reference: http://shapeshed.com/journal/setting-up-nodejs-and-npm-on-mac-osx/
No comments:
Post a Comment