在您的 Gemfile 中列出的任何 gem 来源中找不到 gem 'wdm (>= 0.1.0) x86-mingw32'

Could not find gem 'wdm (>= 0.1.0) x86-mingw32' in any of the gem sources listed in your Gemfile

我正在失去理智试图弄清楚如何解决这个问题。我对 Ruby 一无所知,我只是想阅读需要 Jekyll 为他们提供服务的 React 文档,因为它们是降价促销(不明白为什么他们需要将这样的事情复杂化)。文档的自述文件说你必须安装这些:

我已经做到了。然后您必须执行以下说明:

但是当我执行第二条命令时bundle exec rake,抛出了这个愚蠢的错误:

Could not find gem 'wdm (>= 0.1.0) x86-mingw32' in any of the gem sources listed in your Gemfile. Run bundle install to install missing gems.

I 运行 bundle install 它也抛出一个错误:

An error occurred while installing json (2.0.1), and Bundler cannot continue. Make sure that gem install json -v '2.0.1' succeeds before bundling.

我尝试安装 gem install json -v '2.0.1',但出现错误:

Building native extensions. This could take a while...

ERROR: Error installing json:

   ERROR: Failed to build gem native extension.

这到底是怎么回事?他们为什么不做一些简单的事情?这应该很简单,不像火箭科学那么复杂!

注意:如果这很重要,我正在使用 Windows 32 位。

非常感谢任何帮助!

您必须安装 DevKit。了解如何 here!

然后确保安装了 bundle 或像这样安装它:

gem install bundle