gpt4 book ai didi

jekyll - Jekyll 网站 : no such file or directory 的 Netlify 构建失败

转载 作者:行者123 更新时间:2023-12-05 07:19:12 24 4
gpt4 key购买 nike

我是 Jekyll 的新手,我的 Web 开发经验有限。

我从 https://github.com/samesies/barber-jekyll 派生了一个 Jekyll 主题我正在尝试对其进行更改并部署到 Netlify 上(我刚刚更改了网站标题)。这是构建日志:

10:08:29 PM: Build ready to start
10:08:32 PM: build-image version: 9e0f207a27642d0115b1ca97cd5e8cebbe492f63
10:08:32 PM: build-image tag: v3.3.2
10:08:32 PM: buildbot version: 38cc4984170575781fef71bee035f0855939acb8
10:08:32 PM: Fetching cached dependencies
10:08:32 PM: Starting to download cache of 136.0MB
10:08:33 PM: Finished downloading cache in 931.669576ms
10:08:33 PM: Starting to extract cache
10:08:38 PM: Finished extracting cache in 4.991012678s
10:08:38 PM: Finished fetching cache in 5.954914499s
10:08:38 PM: Starting to prepare the repo for build
10:08:38 PM: Preparing Git Reference refs/heads/master
10:08:39 PM: Starting build script
10:08:39 PM: Build command unable to start
10:08:39 PM: Error running command: fork/exec /usr/local/bin/build: no such file or directory
10:08:39 PM: failed during stage 'building site': fork/exec /usr/local/bin/build: no such file or directory
10:08:39 PM: Failing build: Failed to build site
10:08:39 PM: Finished processing build request in 7.148101994s

我确定地址 /usr/local/bin/build 有问题,但我不知道应该更新哪个文件来修复构建。

最佳答案

您需要告诉 Netlify 要运行什么命令才能正确构建您的站点 - npm run build

您可以通过在线 UI 或通过 netlify.toml 文件执行此操作。

更多信息在他们的文档中 here .

关于jekyll - Jekyll 网站 : no such file or directory 的 Netlify 构建失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57881148/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com