Rails-5, Unknown command nifty-generators

时间:2017-04-10 01:55:26

标签: ruby-on-rails macos terminal

I am trying to add a Gem into my Gemfile and generate the layout file, the command is
gem 'nifty-generators', :group => :development

However, when I type this command in the terminal, the feedback is
ERROR: While executing gem ... (Gem::CommandLineError) Unknown command nifty-generators

How should I fix it?

1 个答案:

答案 0 :(得分:0)

您没有在终端中输入该内容,您需要将其添加到Gemfile,然后从终端运行bundle install