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

时间:2019-09-11 02:15:40

标签: jekyll netlify

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

我从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有问题,但是我无法确定应该更新哪个文件来修复此版本。

1 个答案:

答案 0 :(得分:0)

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

您可以通过在线UI或netlify.toml文件来完成此操作。

他们的文档here中的更多信息。