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:
The npm command fails because you need to be root to edit files under /usr/.
npm
/usr/
You should properly configure npm, see this relevant SO answer:
$ echo prefix = ~/.node >> ~/.npmrc