【问题标题】:Ruby on Rails. gem error cant find installationRuby on Rails。 gem错误找不到安装
【发布时间】:2016-01-14 21:21:18
【问题描述】:

当我运行 rails server 时出现此错误。

rescue in block (2 levels) in require': There was an error while trying to load the gem 'uglifier'

然后,我安装它:

gem install uglifier
Successfully installed uglifier-2.7.2
...

但我仍然遇到同样的错误。会是什么呢?我正在使用 rvm,而且我是 Rails 新手...

【问题讨论】:

  • 你运行bundle install了吗?有没有错误?
  • 需要安装node.js吗? stackoverflow.com/questions/34269101/…
  • @Tim 解决了它。非常感谢!。如果你能把它写成答案,我会接受。
  • :) 很酷,很高兴为您提供帮助

标签: ruby-on-rails rubygems bundler


【解决方案1】:

我认为您需要安装节点 js,因为它依赖于运行时,这很有帮助。

请找到链接:Rake aborted, Error while trying to load the gem 'uglifier'

他们建议在哪里安装 nodejs

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2015-07-15
    • 2019-03-01
    • 2014-03-02
    • 1970-01-01
    • 2021-08-18
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多