Can't run Rails server because of json gem error -


i error while trying run rails server. seems can't install json gem properly. when first tried install gems, got 1.8.2 version of json gem. reason got same error messages attached when tried run server. in order install 1.7.7 version of json, have uninstalled 1.8.2 gem.

does know how fix problem? thank in advance:)

$ rails s not find json-1.7.7 in of sources run `bundle install` install missing gems.  $ bundle install fetching gem metadata https://rubygems.org/........ fetching version metadata https://rubygems.org/... fetching dependency metadata https://rubygems.org/.. using rake 10.0.3 [...] using rack-ssl 1.3.3  errno::eacces: permission denied @ rb_sysopen - /users/annemarit/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/json-1.7.7/.gitignore error occurred while installing json (1.7.7), , bundler cannot continue. make sure `gem install json -v '1.7.7'` succeeds before bundling.  $ gem install json -v '1.7.7' error:  while executing gem ... (errno::eacces)     permission denied @ rb_sysopen - /users/annemarit/.rbenv/versions/2.2.1/lib/ruby/gems/2.2.0/gems/json-1.7.7/.gitignore 

when permission denied, can mean installed gem sudo permission meaning have have root access install/update. happened once me installing root access since signed in root , forgot.

the solution found uninstall , reinstall non sudo. painful process, fixed no permission error. if continue root , keep installing sudo, run major problems later well, never run in sudo when developing ror applications.

i hope helps!


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

order - Notification for user in user account opencart -