Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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

I've had to reinstall my mac, and after my initial macports setup i found that several nodejs libs where broken by the switch to v0.7.x.

Is there a way to easily install nodejs v0.6-latest on a mac?

share|improve this question
up vote 1 down vote accepted

If you previously had Node 0.6.19 installed and just upgraded Node using MacPorts then switching back is easy:
sudo port activate nodejs@0.6.19

If you have never installed Node 0.6.19 on the current machine then you need to install the older version on your machine. Unfortunately that is not as easy as sudo port activate nodejs@0.6.19. I'm not sure why, other than no one has got around to updating MacPorts to do it (all the info is there in the repository).

Instead, you have to follow the steps at which basically require you to browse the [MacPorts repository|] to find the older Portfile, then download it, and then install it.

I've done the "hard part" for you - the Node 0.6.19 Portfile is at So you just need to do the following:
curl -O sudo port install

This will install and activate it. You can then switch back and forth using the activate command I listed above.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.