PixnBits / sublime-text-npm

npm commands within Sublime Text
33 stars 5 forks source link

How to elevate permissions? #23

Closed marshallswain closed 9 years ago

marshallswain commented 9 years ago

Is there a way to overcome the EACCESS errors from not being run with sudo?

PixnBits commented 9 years ago

Looks like Sublime asks for credentials when it encounters such an error. Would such a dialog be user-friendly in your case? (I haven't encountered this myself, so I don't have a solution as of now :frowning:)

marshallswain commented 9 years ago

I'm not sure how you would implement a dialog on this because everything seems to be running just fine until the very end of installing a module, then it gives the error. Maybe a "run as super user" option could be made available for each of the commands? I'd even be happy with a workaround. :)

marshallswain commented 9 years ago

Apparently I just needed to restart Sublime Text after installation. It's working, now.

PixnBits commented 9 years ago

Good to know! Thanks for updating! :+1: