Jekyll 网站的 Netlify 构建失败:没有这样的文件或目录



我是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文件执行此操作。

更多信息请点击此处查看他们的文档。

最新更新