Node installation on a screwed up OSX env.
Cleaning up development env. on Mac
1. Remove any traces of node and family
Excellent set of instructions given here:
http://stackoverflow.com/questions/11177954/how-do-i-completely-uninstall-node-js-and-reinstall-from-beginning-mac-os-x
2. Use homebrew and nothing else to start fresh.
See instructions at -
http://thechangelog.com/install-node-js-with-homebrew-on-os-x/
3. brew update
If that fails, then
cd $(brew --repository) git reset --hard FETCH_HEAD
4. brew doctor
Per the recommendations of doc, I ended up -
- upgrading xCode
- brew prune to mend broken symlinks
- brew installing missing - brew missing
- brew install openssl.
5. fix the path by setting at higher priority local installations instead of system's
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
6. Finally, the nirvana -
brew install node

















