Skip to content
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

Failures related to permissions issues #1

Open
sgtcoolguy opened this issue Oct 16, 2012 · 1 comment
Open

Failures related to permissions issues #1

sgtcoolguy opened this issue Oct 16, 2012 · 1 comment

Comments

@sgtcoolguy
Copy link

We're wrapping calls to "npm uninstall -g package" with cocoasudo to prompt the user for their credentials. This fails at some point because we can't remove some hidden directory:

npm ERR! error rolling back Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/acs/node_modules/.bin'
npm ERR! error rolling back [email protected] { [Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/acs/node_modules/.bin']
npm ERR! error rolling back errno: 53,
npm ERR! error rolling back code: 'ENOTEMPTY',
npm ERR! error rolling back path: '/usr/local/lib/node_modules/acs/node_modules/.bin' }
npm ERR! Error: ENOTEMPTY, rmdir '/usr/local/lib/node_modules/acs/node_modules/.bin'
npm ERR! If you need help, you may report this log at:
npm ERR! http://github.com/isaacs/npm/issues
npm ERR! or email it to:
npm ERR! [email protected]

Running the command under sudo works without this error. I'm not sure why it doesn't seem to be propagating permissions/rights down, maybe in a fork?

@henri
Copy link

henri commented Mar 3, 2013

I have seen the same problem. Have a look at the commands and output below:

  • command 1 : "./cocoasudo crontab -u root -l"
  • command 1 output : "crontab: must be privileged to use -u"
    • command 2 : "./cocoasudo whoami"
    • command 2 output : "root"

If you have any tips for how to resolve these issues that would be great.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants