【问题标题】:Could not find gem 'uglifier'找不到宝石 'uglifier'
【发布时间】:2015-10-04 14:59:17
【问题描述】:

我试过跑步:

rails g controller hello welcome

得到这个错误:

Could not find gem 'uglifier (>= 1.0.3) x86-mingw32' in any of the gem sour
ces listed in your Gemfile or available on this machine.
Run `bundle install` to install missing gems.

我正在使用 Rails 2.2.5。

【问题讨论】:

  • 如错误所说,运行 bundle install... .

标签: ruby-on-rails ruby server


【解决方案1】:

首先安装gem成功,所以你需要运行以下命令:

  bundle install 

如果所有 gem 依赖项安装成功,那么你可以创建你可以创建你的控制器。

【讨论】:

    猜你喜欢
    • 2016-02-15
    • 1970-01-01
    • 2011-11-16
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多