Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What to use instead of --no-ri for gem install?

gem update --system
gem install xxxx --no-ri --no-rdoc

gives: invalid option: --no-ri and invalid option: --no-rdoc, what is the new command line option?

like image 682
Kris Avatar asked Aug 13 '19 10:08

Kris


People also ask

How do I install a gem file?

run the command bundle install in your shell, once you have your Gemfile created. This command will look your Gemfile and install the relevant Gems on the indicated versions. The Gemfiles are installed because in your Gemfile you are pointing out the source where the gems can be downloaded from.

How do I install specific versions of gems?

Use `gem install -v` You may already be familiar with gem install , but if you add the -v flag, you can specify the version of the gem to install. Using -v you can specify an exact version or use version comparators.

What is the difference between gem install and bundle install?

Almost seems like running 'gem install' adds it to the global available gems (and hence terminal can run the package's commands), whereas adding it to the gemfile and running bundle install only adds it to the application. Similar to npm install --global. that's basically it.


1 Answers

The new option is --no-document or -N.

From gem help install:

  Deprecated Options:
        --[no-]rdoc                  Generate RDoc for installed gems
                                     Use --document instead
        --[no-]ri                    Generate ri data for installed gems.
                                     Use --document instead
like image 144
Kris Avatar answered Oct 12 '22 19:10

Kris