Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Add Gem 'wdm' to your GemFile

Error

I have tried running the following command in git bash

rails g scaffold_controller oragnizationsController

And I get the error in the picture. I have tried multiple solutions:

1- Tried running

gem install wdm

2- Tried running

bundle install 

3- I have tried adding

gem 'wdm',  '~> 0.1.0'

and

gem 'wdm',  '~> 0.1.1'

since I read that 0.1.0 ain't working anymore. But the problem hasn't been solved yet. I am using windows 10, ruby 2.3.3, rails 5.1.4

like image 525
Sayed Alesawy Avatar asked Dec 13 '25 23:12

Sayed Alesawy


1 Answers

Uninstall wdm gem and put it to the gemfile like this:

gem 'wdm' if Gem.win_platform?

Or like the error tells you

like image 135
Diego Patricio Aguilef Sánchez Avatar answered Dec 16 '25 17:12

Diego Patricio Aguilef Sánchez



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!