Ruby on rails 找不到gem';丑八怪';

Ruby on rails 找不到gem';丑八怪';,ruby-on-rails,ruby,server,Ruby On Rails,Ruby,Server,我试着跑步: 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。

我试着跑步:

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。

首先成功安装gem,因此您需要运行以下命令:

  bundle install 

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

如错误所示,运行bundle install。