Ruby on Rails - $ rails服务器失败,因为找不到uglifier gem [英] Ruby on Rails - $ rails server fails because uglifier gem could not be found

查看:130
本文介绍了Ruby on Rails - $ rails服务器失败,因为找不到uglifier gem的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我开始我的第一个Ruby项目,并且我遵循的教程使用rails。当我尝试运行 $ rails server 时出现以下错误:找不到gem uglifier(> = 1.3.0)x86-mingw32 在这台机器上可用的宝石中。

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 find gem uglifier (>=1.3.0) x86-mingw32 in the gems available on this machine.

我有一些其他的宝石出现这个错误,我可以通过简单地执行 gem install 手头上的宝石,但这一个给我错误。这些错误在我第一次尝试安装开发套件后开始出现。当我尝试 $ gem install uglifier 时,我看到一大堆可以看到的错误此处

I had this error with a few other gems, and I was able to fix it by simply doing the gem install of the gem at hand, but this one is giving me errors. These errors started to appear after I tried to install the dev kit for the first time. When I try $ gem install uglifier I get a large mess of errors that can be seen here.

我在Windows 8平板电脑上运行。虽然我认识到Ubuntu是这种情况的偏好,但我正在努力使我得到最好的结果。任何帮助将不胜感激。

I am running on a Windows 8 tablet. While I realize Ubuntu is the preference for this situation, I'm trying to make the best with what I'm given. Any help would be greatly appreciated.

推荐答案


  1. 找到您的Gemfile {C:\Users [your name] \Desktop\sample_app}

  2. 在第1行中,将https更改为http {source' http://rubygems.org '}

  3. 在Gemfile中保存更改

  4. 在你的Gitbash中,输入bundle install和按Enter键

  1. Locate your Gemfile {C:\Users[your name]\Desktop\sample_app}
  2. In line 1, change https to http {source 'http://rubygems.org'}
  3. Save changes in Gemfile
  4. In your Gitbash, type "bundle install" and hit Enter

这篇关于Ruby on Rails - $ rails服务器失败,因为找不到uglifier gem的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆