2015-10-04 67 views
-3

我試圖運行:找不到寶石 'uglifier'

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。

+1

就像錯誤說的那樣,運行bundle install ...。 –

回答

1

首先安裝寶石成功,所以你需要下面的命令來運行:

bundle install 

如果所有的gem依賴安裝成功,那麼你可以創建你可以創建你的控制器。