Sorry if this doesn't apply directly to npm, I was just told this is where I could post the issue by the npm err:
I had Yeoman working for a while then out of no where my terminal began saying command not found. When I try to reinstall Yo using npm I get an error that starts with:
rror: ENOENT, lstat '/Users/scott/npm/lib/node_modules/bower/node_modules/mout/array/split.js'
npm ERR! System Darwin 13.0.0
npm ERR! command "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "yo"
I am guessing this has something to do with a reference to my bin folder (since I lost all commands associated with yo). I can also email/message my nom-debug log file (github didn't let me attach .log or .txt) . Please help me any way possible because I was using yo all the time and had even spent a bunch of time making my own generator, so it has become a part of my work flow that I miss.
Let me know if there is anything else you need to be able to help me, otherwise I hope there is a solution to this (haven't found a good one after hours of searching). Especially since it just happened out of nowhere.
It was an issue with the bin. All it took was setting the npm config prefix variable back to default, adding it to my path and opening up the privileges on the folder (thats why it wasn't installing).
npm config set prefix /usr/local
sudo chmod 755 /usr/local/lib