简体   繁体   English

在Git中将Gem WDM添加到GemFile中将无法正常工作

[英]Add Gem WDM to GemFile in Git Never works

I am trying to use Middleman to create a website, and I am running into a lot of issues with trying to do it. 我正在尝试使用Middleman创建网站,而尝试这样做会遇到很多问题。 To solve these issues I am currently running ruby through the git interface to resolve several errors that I get when trying to do this by other methods (like cmd). 为了解决这些问题,我目前正在通过git接口运行ruby,以解决尝试通过其他方法(例如cmd)执行此操作时遇到的一些错误。 Right now I am having an issue getting the first step in doing a website with Middleman and getting errors when executing the first command in the first step of the tutorial . 现在,我遇到了一个问题,即与Middleman建立网站的第一步以及在教程的第一步中执行第一个命令时出错。

I have found no resolution to my problem of WDM not working at all. 我没有找到解决WDM问题根本无法解决的方法。 Here is an image of what happens when I try to execute the command middleman init . 这是当我尝试执行命令middleman init时发生的情况的图像。 After getting this Error I run bundle install and try again and get this Amazing Error that I have found no source in finding out how to fix. 收到此错误后,我运行bundle install然后重试,并得到此惊人错误 ,但我没有找到解决方法。 When I Do gem install WDM -v '0.1.1' --source 'https://rubygems.org/' it seems to work but then spits out the same error when I run middleman init again. 当我执行gem install WDM -v '0.1.1' --source 'https://rubygems.org/'似乎可以正常工作,但是当我再次运行middleman init时,会吐出相同的错误。 I have no idea why this is happening when I can find no other sources on how to fix this. 当我找不到其他解决方法时,我不知道为什么会这样。

Did you try running the suggested command at the bottom 您是否尝试过在底部运行建议的命令

gem install wdm -v '0.1.1' --source 'https://rubygems.org/'

?

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM