Running 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.
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