GEspinha GEspinha - 1 year ago 138
Node.js Question

Use node from homebrew


node -v
in the terminal returns 0.12.2, while running
brew info node
to check homebrew's version of node, it returns 6.7.0

How can I work using homebrew's node? (6.7.0 instead of 0.12.2)

I've tried reinstalling everything, but it didn't work.

Answer Source

Two options...

Either specify the full path to where hombrew installed node each and every time you use it:

/usr/local/bin/node -v

Or, change your PATH in your login profile to put /usr/local/bin ahead of everything else:

export PATH=/usr/local/bin:$PATH 
Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download