【问题标题】:No such file of directory error when attempting "bundle exec jekyll serve"尝试“bundle exec jekyll serve”时没有此类文件或目录错误
【发布时间】:2015-02-22 19:07:04
【问题描述】:

3 天前 Jekyll 运行良好。今天它失败了,我怀疑它是由于我的 Windows 机器上的系统更新。问题是,我不知道如何解决这个问题。尝试运行“Jekyll serve”时出现以下错误,即使我已经能够验证文件的位置..

我已尝试在多个根路径位置多次删除并重新克隆存储库。尽管这在 3 天前有效。因此,任何有关在哪里寻找根本原因的指针都将不胜感激。

E,[2015-02-22T13:01:45.263372 #8332] 错误 -- : Actor 崩溃了! Errno::ENOENT: 没有这样的文件或目录 - C:/Users/brestin .... 在此处插入长路径 .../node_modules C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7 .11/lib/listen/record.rb:113:in open' C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.11/lib/listen/record.rb:113:inentries' C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.11/lib/listen/record.rb:113:in _fast_build' C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.11/lib/listen/record.rb:65:inblock in build' C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.11/lib/listen/record.rb:64:in each' C:/Ruby193/lib/ruby/gems/1.9.1/gems/listen-2.7.11/lib/listen/record.rb:64:inbuild' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:inpublic_send' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/calls.rb:26:indispatch' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/calls.rb:63:in dispatch' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/cell.rb:60:inblock in invoke' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/cell.rb:71:in block in task' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/actor.rb:357:inblock in task' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/tasks.rb:57:in block in initialize' C:/Ruby193/lib/ruby/gems/1.9.1/gems/celluloid-0.16.0/lib/celluloid/tasks/task_fiber.rb:15:inblock in create' 杰基尔 2.4.0 |错误:没有这样的文件或目录 - C:/Users/brestin.... 在此处插入长路径 .../node_modules

【问题讨论】:

    标签: jekyll


    【解决方案1】:

    尝试将exclude: [node_modules] 添加到您的配置文件中。

    【讨论】:

    • 这并没有解决它,但在正确的轨道上。 “node_modules”已经在现有的 _config.yml 文件中,所以问题似乎是它没有被兑现。知道是什么原因造成的吗?
    • 使用它,我暂时删除了 node_modules 文件夹,至少我可以再次调试。我仍然要找到它的根,但这至少可以解除对我的阻止。谢谢@parkr。 :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2022-07-27
    • 2016-02-26
    • 1970-01-01
    • 2021-06-20
    • 1970-01-01
    相关资源
    最近更新 更多