简体   繁体   中英

Ruby on Rails error during installation

I'm trying to install Ruby, I followed the installation guide well, but when I tried to run the server by the command: ruby bin/rails setup after I created the controller called blog as described in the instructions, it gave me an error in red and a text in yellow: Error: Could not find gem uglifier <>= 1.3.0 in the gems available on the machine.

Yes! I know that this is a Googleable question but all I can get are solutions for people with internet access on their PC.

But unfortunately, my computer doesn't have a working Internet connection. I'm posting this question from my phone. So I'm unable to install uglifier(if that's the required thing to do) through the command prompt. Many thanks.

Please could you check if your Gemfile has the following gem

gem 'uglifier'

If the Gem is not present add it to your Gemfile, if you already have it in your Gemfile please run:

bundle install

After that you should check if the bundler is installing the uglifier gem.

Hope that helps,

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM