-
-
Notifications
You must be signed in to change notification settings - Fork 737
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Sudo Errors When re-Installing #327
Comments
Looks like the script couldnt detect it needed sudo for the npm install...
|
If you have any further issues once using @paulirish's suggestion above, please feel free to share your output again and we'll be happy to assist further. |
@tomlane This also stood out to me:
|
Even after using @paulirish's suggestion, here's what I am presented with:
Here's the catch: I'm actually entering my password correctly every single time. I even locked my computer, logged out, restarted, closed and reopened iTerm multiple times. Not really sure what the heck I've done incorrectly. I tried doing the one-line installer, if that matters. |
@sindresorhus the lack of a -f flag breaks this |
ideally the |
Same thing happens as @ggamel pointed out with sudo npm install -g yeoman |
I am also getting the same error as @ggamel. |
I got a similar error when I tried to install the new version. I had the pre-beta installed. I had to do a global uninstall and update Homebrew before everything worked for me. |
quick fix: mkdir -p ~/.yeoman
sudo npm install -g yeoman We're working on something better. Thanks |
Still no luck. I'm still being asked (twice) to enter my password; first time, password accepted; second time, password rejected. Again, I'm using the correct password. Here's the output: https://gist.github.com/3693073 |
Worked fine for me. Thanks Paul |
Have tried a few different things, uninstalling yeoman, etc, etc. Cannot seem to pinpoint what is causing the 2nd password request failure. Never accepts my password the 2nd time around. Hmm. Thoughts on where I can/should look, @paulirish? 😎 |
okay ggamel.. first, can you confirm the "quick fix" doesn't work? it should. this is a bit of a hack but should get you out of this. $ which yeoman
/usr/local/bin/yeoman
$ readlink `which yeoman`
../lib/node_modules/yeoman/bin/yeoman You probably get the same path for those two commands.. assuming you do.. vim /usr/local/lib/node_modules/yeoman/package.json go to line 30 where it has the |
None of that worked. The yeoman package.json file didn't even exist. So strange. Still having issues. I have node install via After trying the "quick fix" again, I've no idea why, when prompted a 2nd time for my password, it never accepts it and the install fails. |
I can confirm that removing the uninstall line worked for me but not the previous solution. |
Okay, here we go: Our But turns out npm will, in some cases run this script as the nobody user. And what is the sudo password for Our auto-update procedure will trigger this behavior on a few folks so we should figure out the best path upwards. @sindresorhus @addyosmani @ghchinoy reported @ggamel can you confirm? If it's good we'll have to have this documented for when we pull the 0.9.1 trigger and potentially trigger this for some others. |
@paulirish It's not the uninstall command which breaks the install process:
NPM will just continue even though the uninstall failed. I think |
Removed |
@paulirish Here's what I managed: I ran the SO! - I tried the removal method you mentioned (cheers @ghchinoy). Then I tried running the yeoman command to see if anything lingered. It did, except I was just reprompted like so:
This catches you up-to-date. I even tried re-running the one-liner install and was still double-prompted for my password (once for my user acct, once for Something is still amiss. I'll note I have yet to try removing the dirs mentioned by @sindresorhus or @josemota. |
It's not just That did it for me (just reconfirmed). |
Updated git repo just about now. Successfully installed after following @ghchinoy 's instructions. Thanks man. |
Working for me now. Re-ran the install with the one-liner and I'm sitting pretty. |
Just a heads up: sadly I've been facing errors again regarding sudoing twice, one for my user, another one for what it appears to be nobody. All the folders suggested by @ghchinoy were removed. The double sudo appears upon installing yeoman's module dependencies:
|
The error is prompted by the npm uninstall script in yeoman 0.9.0's I've documented the uninstall procedure here: https://github.com/yeoman/yeoman/wiki/Additional-FAQ I'm going to close this issue now, thanks everyone for helping out so much with this doozy! |
I apologize for bringing this up again but I'm still not able to install yeoman correctly from So I pulled the latest changes along with the excellent audit script and the only thing left was to install I'm using Mac OS X 10.7.4, with Homebrew. |
@josemota Not sure if you've figured your issue out. This might be helpful for others. Once I moved nvm to /opt/nvm and redid my npm and node links everything worked perfect! Hope this helps someone. |
edit by admin:
This ticket now tracks a yeoman reinstall issue where a sudo password is required but fails. see below comment for summary.
The text was updated successfully, but these errors were encountered: