简体   繁体   English

在您的Gemfile中列出的或本机上可用的任何gem资源中找不到gem'wdm(> = 0.1.0)x64-mingw32'

[英]Could not find gem 'wdm (>= 0.1.0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine

When I run Jekyll serve on Git Bash I get the following warning: 当我在Git Bash上运行Jekyll服务时,会收到以下警告:

Please add the following to your Gemfile to avoid polling for changes:
gem 'wdm', '>= 0.1.0' if Gem.win_platform?

After adding the Gemfile I get another error message. 添加Gemfile后,我又收到一条错误消息。

Could not find gem 'wdm (>= 0.1.0) x64-mingw32' in any of the gem sources
listed in your Gemfile or available on this machine.

I tried installing Ruby Devkit to fix this issue but I only end up getting the following error messages. 我尝试安装Ruby Devkit来解决此问题,但最终得到以下错误消息。

$ ruby dk.rb install
[INFO] Skipping existing gem override for 'C:/Ruby200-x64'
[WARN] Skipping existing DevKit helper library for 'C:/Ruby200-x64'

$ gem install json --platform=ruby
ERROR: Error installing json:
The 'json' native gem requires installed build tools.

Please update your PATH to include build tools or download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'

看来您之前已经安装过devkit,但它会跳过新安装,请尝试

ruby dk.rb install --force

在将wdm gem添加到Gemfile进行下载后,需要运行bundle install

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Gemfile中列出的任何gem来源中找不到gem'sass-rails(〜> 4.0.3)x64-mingw32' - Could not find gem 'sass-rails (~> 4.0.3) x64-mingw32' in any of the gem sources listed in your Gemfile 无法在Gemfile中列出的任何gem源中找到gem'rail(= 4.2.5.2)x86-mingw32'或在此机器上可用 - Could not find gem 'rails (= 4.2.5.2) x86-mingw32' in any of the gem sources listed in your Gemfile or available on this machine 在任何 gem 来源中都找不到 gem 'another-jekyll-plugin x64-mingw32' - Could not find gem 'another-jekyll-plugin x64-mingw32' in any of the gem sources 在 Gemfile 中列出的任何 gem 源中都找不到 gem 'tzinfo-data x86-mingw32'。 (Bundler::GemNotFound) - Could not find gem 'tzinfo-data x86-mingw32' in any of the gem sources listed in your Gemfile. (Bundler::GemNotFound) 在Gemfile中列出的或本机上可用的任何宝石来源中找不到宝石'pg(= 0.12.4)红宝石' - Could not find gem 'pg (= 0.12.4) ruby' in any of the gem sources listed in your Gemfile or available on this machine 找不到 gem 'rails (= 4.2.4) x64-mingw32' - Could not find gem 'rails (= 4.2.4) x64-mingw32' 在您的Gemfile中列出的任何宝石来源中找不到宝石 - Could not find gem in any of the gem sources listed in your Gemfile 在您的 Gemfile 中列出的任何 gem 源中找不到 gem 'nested-scaffold x86_64-linux' - Could not find gem 'nested-scaffold x86_64-linux' in any of the gem sources listed in your Gemfile 红宝石宝石错误:找不到宝石'logstash-devutils(> = 0)x64-mingw32' - ruby gem error: Could not find gem 'logstash-devutils (>= 0) x64-mingw32' 找不到在轨道上运行服务器ruby的gem'byebug x64-mingw32'吗? - Could not find gem 'byebug x64-mingw32' for run server ruby on rails?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM