2016-06-17 7 views
0

私はRuby(2.2.2)のレール(4.2.3)アプリケーションでautoprefixerを使用していますが、GemRequireErrorがあるようですが、それを修正する理由や方法を理解できません。 ..誰も私にいくつかのポインタを与えることができますか?GemRequireError autoprefixer-rails

私はバンドルを実行し、問題なく自動プレフィクス・レール6.3.3.1をインストールしますが、rails sを使用してWebを実行しようとするとエラーが発生します。

エラー:

[email protected]:~/development/myweb$ rails s 
/usr/lib/ruby/vendor_ruby/bundler/runtime.rb:80:in `rescue in block (2 levels) in require': There was an error while trying to load the gem 'autoprefixer-rails'. (Bundler::GemRequireError) 
    from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:76:in `block (2 levels) in require' 
    from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:72:in `each' 
    from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:72:in `block in require' 
    from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:61:in `each' 
    from /usr/lib/ruby/vendor_ruby/bundler/runtime.rb:61:in `require' 
    from /usr/lib/ruby/vendor_ruby/bundler.rb:99:in `require' 
    from /home/user/development/myweb-web/config/application.rb:7:in `<top (required)>' 
    from /home/user/.rvm/gems/[email protected]/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:78:in `require' 
    from /home/user/.rvm/gems/[email protected]/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:78:in `block in server' 
    from /home/user/.rvm/gems/[email protected]/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `tap' 
    from /home/user/.rvm/gems/[email protected]/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:75:in `server' 
    from /home/user/.rvm/gems/[email protected]/gems/railties-4.2.3/lib/rails/commands/commands_tasks.rb:39:in `run_command!' 
    from /home/user/.rvm/gems/[email protected]/gems/railties-4.2.3/lib/rails/commands.rb:17:in `<top (required)>' 
    from bin/rails:4:in `require' 
    from bin/rails:4:in `<main>' 

マイ/home/user/development/myweb-web/config/application.rb:7

Bundler.require(*Rails.groups) 

マイGemfile:

source 'https://rubygems.org' 

gem 'rails', '4.2.3' 

# Bundle edge Rails instead: 
# gem 'rails', :git => 'git://github.com/rails/rails.git' 

gem 'pg' 
gem 'activerecord-postgis-adapter' 

# usage https://github.com/mbleigh/acts-as-taggable-on 
gem 'acts-as-taggable-on', '~> 3.4' 
gem 'acts_as_votable', '~> 0.10.0' 
gem 'rmagick' 
gem 'paperclip' 
gem 'jquery-rails' 
gem 'jquery-fileupload-rails', '~> 0.4.6' 
gem 'jbuilder', '~> 2.0' 

# security 
gem 'omniauth' 
gem 'omniauth-facebook' 
gem "omniauth-islykill" 
gem 'omniauth-twitter' 
gem "omniauth-google-oauth2" 

gem 'paperclip-meta' 
gem 'photoswipe-rails' 

gem "autoprefixer-rails" 

# Gems used only for assets and not required 
# in production environments by default. 
group :assets do 
    gem 'sass-rails' 
    gem 'coffee-rails' 

    # See https://github.com/sstephenson/execjs#readme for more supported runtimes 
    # gem 'therubyracer', :platforms => :ruby 

    gem 'uglifier', '>= 1.0.3' 
end 

group :development, :test do 
    gem 'rails-perftest' 
    gem 'ruby-prof' 
    gem 'capybara' 
end  

答えて

0

なぜ私は完全にはわからないが、gem pristine --allを実行して問題がなくなった。だから、いくつかのキャッシュ問題があったと思いますが、自動プレフィクタレール()との競合やあいまいさがありますが、宝石自体はありません。私のプロジェクトで

0

- 私はちょうどGemfile.lockの行変更:hashieから を(3.5.2)hashieする(3.4.6)

+0

はStackOverflowのへようこそ。良い答えを書く方法を読んでください。 [this](http://meta.stackexchange.com/a/7659/338114)と[this](http://stackoverflow.com/help/how-to-answer)を読んでください。これはコメントとして投稿する必要があります。 –

関連する問題