There was an error parsing Gemfile: windows is not a valid platform

I hit this error recently. To fix this, you need to update to a newer version of bundler.

gem update bundler

Good luck, hope this saved you some time.

Error

There was an error parsing `Gemfile`: `windows` is not a valid platform.