Installing Yeoman on my OSX machine results in the following error:
paulh16$ npm install -g yo npm http GET https://registry.npmjs.org/yo npm http 304 https:
This solved the issue for me. Setting the permission on the npm folder in your home directory was the fix for me.
sudo chown -R `whoami` ~/.npm