nicosantangelo / sublime-gulp

Run Gulp tasks and use snippets from Sublime Text
https://sublime-gulp.nicosantangelo.com/
MIT License
155 stars 18 forks source link

Run as root user / admin #30

Closed jimbatamang closed 9 years ago

jimbatamang commented 9 years ago

How can I run gulp task as a root user while using sublime-gulp plugin?

nicosantangelo commented 9 years ago

Hum, as of right now, you can't.

To my knowledge, gulp isn't really intended to be used as root, do you really need to run it like that?

jimbatamang commented 9 years ago

May be if it's my OS/Machine issue or not but when I run gulp tasks (which includes imagemin, sourcemap) without super user, it can't replace the old files.

nicosantangelo commented 9 years ago

I tried a bit and couldn't run a sudo command from Sublime. I'll keep trying and let you know either way

nicosantangelo commented 9 years ago

I tried running the task as an admin from inside Sublime and it just couldn't be done. For now, it seems like a limitation of the editor. If I can find a workaround for this I'll reopen the issue, sorry.