Monday, April 8, 2013

Homebrew Install and npm for Node

install homebrew

>ruby -e "$(curl -fsSL https://raw.github.com/mxcl/homebrew/go)"

// uninstall MacPorts if installed before installing node


>sudo port -fp uninstall installed
>sudo rm -rf \
    /opt/local \
    /Applications/DarwinPorts \
    /Applications/MacPorts \
    /Library/LaunchDaemons/org.macports.* \
    /Library/Receipts/DarwinPorts*.pkg \
    /Library/Receipts/MacPorts*.pkg \
    /Library/StartupItems/DarwinPortsStartup \
    /Library/Tcl/darwinports1.0 \
    /Library/Tcl/macports1.0 \
    ~/.macports


> brew install node

// to uninstall npm

> sudo npm uninstall npm -g

No comments:

Post a Comment

Note: Only a member of this blog may post a comment.