【问题标题】:MIDDLEMAN: "$ middleman init my_new_project" not working (screenshot attached)MIDDLEMAN:“$ middleman init my_new_project”不工作(附截图)
【发布时间】:2016-01-20 23:48:56
【问题描述】:

我刚刚安装了 Ruby 和 Middleman,但我无法通过第一个“$ middleman init my_new_project”步骤。我尝试用谷歌搜索解决我的问题,但不幸的是我找不到任何看起来像我遇到的错误的东西。

我希望有人可以帮助我。

操作系统:Windows 10 | Ruby:2.2.3 (x64)(首先尝试 Ruby 2.1.7)| 中间人:4.0.0

这是我尝试在我为试用 Middleman 而创建的文件夹中创建新项目时收到的错误消息:

    run git clone --depth 1 git://github.com/middleman/middleman-templates-default.git C:/Users/Lenovo/AppData/Local/Temp/d20160120-1612-c2sqbk from "."
    exist new_project_test
      run bundle install from ".new_project_test"
Could not locate Gemfile or .bundle/ directory

这只会创建一个空的“new_project_test”文件夹。

命令提示符截图:middleman init not working (alt. image link)

【问题讨论】:

    标签: ruby middleman


    【解决方案1】:

    如果你只运行'middleman init'会发生什么?

    您也可以尝试手动创建 Gemfile,如果第一步没有创建,则再次运行 init。默认的看起来像这样:

    # If you do not have OpenSSL installed, update
    # the following line to use "http://" instead
    source 'https://rubygems.org'
    
    gem "middleman", "~>3.4.1"
    
    # Live-reloading plugin
    gem "middleman-livereload", "~> 3.3.0"
    
    # For faster file watcher updates on Windows:
    gem "wdm", "~> 0.1.0", :platforms => [:mswin, :mingw]
    
    # Windows does not come with time zone data
    gem "tzinfo-data", platforms: [:mswin, :mingw, :jruby]
    

    【讨论】:

      猜你喜欢
      • 2013-04-12
      • 1970-01-01
      • 2015-07-15
      • 1970-01-01
      • 2015-08-13
      • 2020-11-08
      • 2013-11-14
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多