0

I am using ruby 2.3.0, and rails 4.2.0. when I try to run rails server, I am getting error that seems to be related to sass-rails gem. I am not sure why this isn't working.

Thank You

here is the error:

roman@quotebeam:~/workspace/hello_app$ rails server /home/roman/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:80:in rescue in block (2 levels) in require': There was an error while trying to load the gem 'sass-rails'. (Bundler::GemRequireError) from /home/roman/.rbenv/versions/2.3.0/lib/ruby/gems/2.3.0/gems/bundler-1.11.2/lib/bundler/runtime.rb:76:inblock (2 levels) in require'

here is my gemfile

source 'https://rubygems.org'

gem 'rails', '4.2.0'

gem 'sass-rails', '5.0.1'

gem 'uglifier', '2.5.3'

gem 'coffee-rails', '4.1.0'

gem 'jquery-rails', '4.0.3'

gem 'turbolinks', '2.3.0'

gem 'jbuilder', '2.2.3'

gem 'sdoc', '0.4.0', group: :doc

group :development, :test do

gem 'sqlite3', '1.3.9'

gem 'byebug', '3.4.0'

gem 'web-console', '~> 2.0'

gem 'spring', '1.1.3'

end

Roman
  • 1
  • Have you tried installing nodejs in your system ? **sudo apt-get install nodejs** – dp7 Mar 23 '16 at 06:13
  • Have you tried removing the version number of the sass gem and running bundle install again? –  Mar 23 '16 at 06:51
  • Just a general advice, You don't need versions for every gem in your `Gemfile`, that's what the `Gemfile.lock` will take care of. Leaving the version blank, except for known issues with certain gems, allows updating them much easier. – Thomas R. Koll Mar 23 '16 at 07:01
  • thanks....I removed versions from gems in Gemfile...then run gem cleanup followed by bundle install and no more rails server errors. – Roman Mar 24 '16 at 02:25

0 Answers0