1
3
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?
1
3
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?
1
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 . 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). sudo port activate nodejs@0.6.19
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:
curl -O https://trac.macports.org/export/94009/trunk/dports/devel/nodejs/Portfile
sudo port install
This will install and activate it. You can then switch back and forth using the activate command I listed above.