Yo Stopped working and won't reinstall #4785

Closed
prescottprue opened this Issue Feb 25, 2014 · 1 comment

Projects

None yet

3 participants

@prescottprue

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'

Then:
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.

@prescottprue

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).

Rest prefix variable to default value (for mac)
npm config set prefix /usr/local
Open access to folder (to stop installing error)
sudo chmod 755 /usr/local/lib
Append this to your $Path (access to command in terminal)
:/usr/local/share/npm/bin
@domenic domenic closed this Apr 18, 2014
@othiym23 othiym23 added the support label Sep 24, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment