Ruby on Rails - $ rails server fails because uglifier gem could not be found

前端 未结 7 1780
孤城傲影
孤城傲影 2021-01-06 13:08

I\'m starting my first project on Ruby and the tutorial I\'m following has me using rails. When I try to run $ rails server I get an error that says: Could not

7条回答
  •  自闭症患者
    2021-01-06 13:25

    Check if your Gemfile has the following gem

    gem 'uglifier'
    

    If the Gem is not present add it to your Gemfile. Sometimes it turns out that your Gemfile.lock has the dependency but you might have commented the Gem in Gemfile.

    I you already have the gem in Gemfile run bundle install and check if the bundler is installing the uglifier gem

提交回复
热议问题