ruby on rails - Why am I getting an error when I bundle install without using "sudo" -
recently have noticed trying bundle without "sudo" command results in like:
could not find gem 'faye (~> 1.0.0) ruby' in gems available on machine.
but using sudo bundle install
works champ.
why computer doing this?
note
i don't know information provide, feel free request anything.
with "sudo" command executed root user. when executed this, includes environment variables set differently, because needed in context of root user.
this might what's happening here, since possibly path variable (or other environment variable) different in sudo-environment, can find gem looking for. while in normal execution environment, can not find it, since path set differently.
hope helps :)
Comments
Post a Comment