1

当我在 Git Bash 上运行 Jekyll serve 时,我收到以下警告:

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

添加 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.

我尝试安装 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'
4

2 回答 2

2

您需要bundle install在将wdmgem 添加到 Gemfile 后运行才能下载它。

于 2017-06-27T10:26:02.633 回答
1

好像你之前安装过devkit,它跳过了新的安装,试试

ruby dk.rb install --force
于 2016-07-06T04:17:49.423 回答