Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Atm I have homebrew installing node on my mac, when I run brew update node it says

Already up-to-date.

Then when I do node -v I get

v0.2.6

Is there some way to get brew to update to v0.4.2 atm? or do I need to build from source?

share|improve this question
up vote 6 down vote accepted

brew update updates brew itself, as well as the formulas.

update Fetch the newest version of Homebrew from GitHub using git(1).

I started out today with Homebrew 0.7.1 and got the following:

$ brew info node
node 0.4.0
http://nodejs.org/
Not installed

Then I ran brew update and get:

$ brew info node
node 0.4.2
http://nodejs.org/
Not installed

and

$ sudo brew install node
==> Downloading http://nodejs.org/dist/node-v0.4.2.tar.gz
######################################################################## 100,0%
==> ./configure --prefix=/usr/local/Cellar/node/0.4.2

So if your brew is up to date, you should also have access to a current version of node -- try brew install node again.

If that doesn't help, try running which node to see if this is really the Homebrew node you're running node -v on.

share|improve this answer
    
weird brew install node worked.. – erikvold Mar 8 '11 at 16:20
    
I had homebrew 0.7.1 too.. – erikvold Mar 8 '11 at 16:20

The current best practice for updating a specific formula (e.g. node):

brew upgrade <formula>

If you want to, you may issue brew cleanup afterwards, to get rid of leftover cruft from older versions in the Cellar.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .