Had to deal with some issues introduced by bad homebrew installations and possible old NPM installs. My guess is that I probably cheated/screwed up using a sudo install when I should have done something different.
This all started playing with the WebDevStudions WordPress plugin generator for yeoman.
This gist was very helpful – Fixing npm On Mac OS X for Homebrew Users
Another strange issue was caused by installing the generator-plugin-wp yoeman generator on a broken yeoman/npm system. This posted github issue helped. https://github.com/npm/npm/issues/10995 This needed a straightforward uninstall, cache clear, and reinstall. I may have reintialized my terminal sessions to drop out of sudo mode. It looked something like:
$ sudo npm remove -g yo generator-plugin-wp $ npm cache clean -- can't remember if I relaunched terminal to drop out of sudo mode. $ npm install -g generator-plugin-wp
I’ll be testing this yeoman generator on the side for a while: https://github.com/WebDevStudios/generator-plugin-wp