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?
If you previously had Node 0.6.19 installed and just upgraded Node using MacPorts then switching back is easy:
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
Instead, you have to follow the steps at http://trac.macports.org/wiki/howto/InstallingOlderPort which basically require you to browse the [MacPorts repository|http://trac.macports.org/browser/trunk/dports] 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 https://trac.macports.org/export/94009/trunk/dports/devel/nodejs/Portfile. So you just need to do the following:
This will install and activate it. You can then switch back and forth using the activate command I listed above.