简体   繁体   English

Ruby on Rails。 宝石错误找不到安装

[英]Ruby on Rails. gem error cant find installation

When I run rails server I get this error. 当我运行rails server此错误。

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

Then, I install it: 然后,我安装它:

gem install uglifier
Successfully installed uglifier-2.7.2
...

But I still get the same error. 但是我仍然遇到同样的错误。 What could it be? 会是什么呢? I'm using rvm and I'm new to Rails... 我正在使用rvm,并且刚接触Rails ...

I think you need to install node js as there is a dependency on the run time, that helpfully does not show up. 我认为您需要安装node js,因为它依赖于运行时,但不会显示出来。

Please find a link: Rake aborted, Error while trying to load the gem 'uglifier' 请找到一个链接: Rake已中止,尝试加载gem'uglifier'时出错

where they suggest apt-get install nodejs 他们在哪里建议apt-get install nodejs

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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