When I desire to start the server in my GitBash, I get the next message in red letters:
Bundler could not find compatible versions for gem "sass":
In snapshot (Gemfile.lock):
sass (= 3.5)
In Gemfile:
sass (= 3.5) x86-mingw32
compass (>= 1.0.3, ~> 1.0) x86-mingw32 was resolved to 1.0.3, which depends on
sass (< 3.5, >= 3.3.13) x86-mingw32
sass-rails (>= 5.0.7, ~> 5.0) x86-mingw32 was resolved to 5.0.7, which depends on
sass (~> 3.1) x86-mingw32
Running `bundle update` will rebuild your snapshot from scratch, using only
the gems in your Gemfile, which may resolve the conflict.
I really have been breaking my head on this for the past few hours. Could somebody help?
Replacing sass-rails with gem 'sass-rails', '~> 6.0.0.beta1' will resolve your issue. and use sass version 3.4
if you don't want to go for a beta version of sass rails then you have to downgrade compass to gem 'compass', '~> 0.12.1'.
Related
I'm trying to run bundle install and getting the following error:
Bundler could not find compatible versions for gem "activemodel": In
Gemfile:
rails (= 5.1.5) was resolved to 5.1.5, which depends on
activemodel (= 5.1.5)
web-console (~> 2.0) was resolved to 2.0.0, which depends on
activemodel (~> 4.0)
I have tried updating ruby and the rails version
worked properly) here it is:
Bundler could not find compatible versions for gem "ruby ":
In Gemfile:
ruby (~> 2.6.1.0) x64-mingw32
sass-rails (~> 5.0) x64-mingw32 was resolved to 5.0.6, which depends on
sass (~> 3.1) x64-mingw32 was resolved to 3.5.1, which depends on
sass-listen (~> 4.0.0) x64-mingw32 was resolved to 4.0.0, which depends on
rb-inotify (~> 0.9, >= 0.9.7) x64-mingw32 was resolved to 0.9.10, which depends on
ffi (>= 0.5.0, < 2) x64-mingw32 was resolved to 1.9.18, which depends on
ruby (< 2.5) x64-mingw32
Could not find gem 'ruby (< 2.5)', which is required by gem 'sqlite3', in any
of the relevant sources: the local ruby installation
I figured it out by adding
gem 'sqlite3', git: "https://github.com/larskanis/sqlite3-ruby", branch: "add-gemspec"
I am trying to install ruby gems and having the following issue. Please suggest. I am a novice in Ruby n Rails. Right now I am using Ruby 2.0.0.
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
nokogiri (~> 1.5)
fog (~> 1.23.0) was resolved to 1.23.0, which depends on
nokogiri (~> 1.5, >= 1.5.11)
Bundler could not find compatible versions for gem "ruby":
In Gemfile:
ruby (~> 2.0.0.0)
nokogiri (~> 1.5) was resolved to 1.8.5, which depends on
ruby (>= 2.1.0)
Bundler could not find compatible versions for gem "sprockets":
In Gemfile:
activeadmin-wysihtml5 was resolved to 1.0.0, which depends on
activeadmin-dragonfly was resolved to 0.0.2, which depends on
activeadmin was resolved to 2.0.0.alpha, which depends on
sprockets (>= 3.0, < 4.1)
sass-rails (~> 4.0.3) was resolved to 4.0.3, which depends on
sprockets (~> 2.8, <= 2.11.0)
As the most easy solution I'd propose to remove versions from Gemfile i.e. instead of writing
gem 'nokogiri', '~> 1.5'
use just
gem 'nokogiri'
The same for all conflicting gems. And then try to rerun you bundle install. This would make Bundler more broad possibilities to find suitable versions. After all dependencies are installed correctly, just fix gem versions according to Gemfile.lock
In Gemfile:
protected_attributes x86-mingw32 was resolved to 1.0.0, which depends on
activemodel (< 5.0, >= 4.0.0.beta) x86-mingw32
rails (~> 5.0.4) x86-mingw32 was resolved to 5.0.4, which depends on
activemodel (= 5.0.4) x86-mingw32
rails (~> 5.0.4) x86-mingw32 was resolved to 5.0.4, which depends on
activemodel (= 5.0.4) x86-mingw32
web-console (>= 3.3.0) x86-mingw32 was resolved to 3.5.1, which depends on
activemodel (>= 5.0) x86-mingw32
I already tried to do bundle, bundle install and bundle update but it doesnt work.
I made some research and turns out that the gem protected_attributes does not work with Rails 5, but the community made another that does work, this gem is protected_attributes_continued, so i just changed the gem in the Gemfile
I'm trying to bundle update nokogiri with gem 'nokogiri', '~> 1.7', '>= 1.7.1'
and Bundler gave me an error
Bundler could not find compatible versions for gem "nokogiri":
In Gemfile:
nokogiri (>= 1.7.1, ~> 1.7)
anemone was resolved to 0.7.2, which depends on
nokogiri (>= 1.3.0)
haml-rails was resolved to 0.9.0, which depends on
html2haml (>= 1.0.1) was resolved to 2.0.0, which depends on
nokogiri (~> 1.6.0)
quickbooks-ruby (~> 0.4.2) was resolved to 0.4.6, which depends on
nokogiri
haml-rails 0.9.0 is the latest version.. and I expected html2haml to resolve to 2.1.0 as well but it did not...
Could someone tell me what I'm missing here?
try requiring html2haml, '~> 2.1' in your gemfile. Seems like the requirements aren't smart enough to force it to upgrade from the cached version you have installed locally.