运行 捆绑包安装后找不到 gem 'rake'
Can't find gem 'rake' after running bundle install
环境:Bash for Windows 10
我正在尝试通过客户端存储库在我的工作站上设置一个 Ruby 环境。我 运行 bundle install
安装 rbenv 中的所有 gem。然后我 运行 rake
,它应该在此过程中安装并收到一条错误消息。以下是我在 运行 以粗体显示命令时收到的日志。
bundle exec rake db:create
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
rake
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
bundle install
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
bundle info rake
* rake (10.5.0)
Summary: Rake is a Make-like program implemented in Ruby
Homepage: https://github.com/ruby/rake
Path: /usr/share/rubygems-integration/all/gems/rake-10.5.0
bundle | grep rake
Using rake 10.5.0
也许您可以尝试手动安装 rake,看看它是否能解决您的问题,运行
gem install rake -v '10.5.0'
环境:Bash for Windows 10
我正在尝试通过客户端存储库在我的工作站上设置一个 Ruby 环境。我 运行 bundle install
安装 rbenv 中的所有 gem。然后我 运行 rake
,它应该在此过程中安装并收到一条错误消息。以下是我在 运行 以粗体显示命令时收到的日志。
bundle exec rake db:create
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
rake
Could not find rake-10.5.0 in any of the sources
Run `bundle install` to install missing gems.
bundle install
Bundle complete! 31 Gemfile dependencies, 124 gems now installed.
Use `bundle info [gemname]` to see where a bundled gem is installed.
bundle info rake
* rake (10.5.0)
Summary: Rake is a Make-like program implemented in Ruby
Homepage: https://github.com/ruby/rake
Path: /usr/share/rubygems-integration/all/gems/rake-10.5.0
bundle | grep rake
Using rake 10.5.0
也许您可以尝试手动安装 rake,看看它是否能解决您的问题,运行
gem install rake -v '10.5.0'