Tuesday, December 9, 2014

Install Node.js and NPM on Mac OSX

I’m using Homebrew for the installation. If you don't have it installed, please install it.

1. Install node
heshans@15mbp-08077.local:~/Dev$brew install node

2. Check installed versions.
heshans@15mbp-08077.local:~/Dev$node -v

v0.10.33

heshans@15mbp-08077.local:~/Dev$npm -v

2.1.8

3. Update Homebrew.
heshans@15mbp-08077.local:~/Dev$brew update 

Already up-to-date.

4. Upgrade Node.
heshans@15mbp-08077.local:~/Dev$brew upgrade node

No comments: