Eleventy deploy is failing with exit code 127

Netlify site name: hopeful-hopper-fff850.netlify.app

I haven’t deployed to my site in about a month. While attempting to push a new blog post to my site today, it kept failing with the below log:

3:18:42 PM: Build ready to start
3:18:44 PM: build-image version: 3031d4c9e432fd7016f6279fc9ad706f9205d845
3:18:44 PM: build-image tag: v3.3.17
3:18:44 PM: buildbot version: d2dce75b20e52883432aefbd693a7ea0140bb7af
3:18:44 PM: Fetching cached dependencies
3:18:44 PM: Failed to fetch cache, continuing with build
3:18:44 PM: Starting to prepare the repo for build
3:18:45 PM: No cached dependencies found. Cloning fresh repo
3:18:45 PM: git clone git@github.com:ststimac/stephaniestimac-blog
3:18:46 PM: Preparing Git Reference pull/8/head
3:18:47 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: '_site' versus '' in the Netlify UI
3:18:47 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'DEBUG=* eleventy' versus '' in the Netlify UI
3:18:47 PM: Starting build script
3:18:47 PM: Installing dependencies
3:18:47 PM: Python version set to 2.7
3:18:47 PM: Attempting node version '8' from .nvmrc
3:18:48 PM: Downloading and installing node v8.17.0...
3:18:48 PM: Downloading https://nodejs.org/dist/v8.17.0/node-v8.17.0-linux-x64.tar.xz...
3:18:49 PM: Computing checksum with sha256sum
3:18:49 PM: Checksums matched!
3:18:51 PM: Now using node v8.17.0 (npm v6.13.4)
3:18:51 PM: Started restoring cached build plugins
3:18:51 PM: Finished restoring cached build plugins
3:18:51 PM: Attempting ruby version 2.6.2, read from environment
3:18:53 PM: Using ruby version 2.6.2
3:18:53 PM: Using PHP version 5.6
3:18:53 PM: 5.2 is already installed.
3:18:53 PM: Using Swift version 5.2
3:18:53 PM: Started restoring cached node modules
3:18:53 PM: Finished restoring cached node modules
3:18:53 PM: Installing NPM modules using NPM version 6.13.4
3:18:54 PM: npm notice created a lockfile as package-lock.json. You should commit this file.
3:18:54 PM: npm WARN Invalid name: "Stephanie Stimac"
3:18:54 PM: npm WARN repo No description
3:18:54 PM: npm WARN repo No repository field.
3:18:54 PM: npm WARN repo No README data
3:18:54 PM: npm WARN repo No license field.
3:18:54 PM: up to date in 0.291s
3:18:54 PM: found 0 vulnerabilities
3:18:54 PM: NPM modules installed
3:18:54 PM: Started restoring cached go cache
3:18:54 PM: Finished restoring cached go cache
3:18:54 PM: Installing Go version 1.12
3:19:00 PM: unset GOOS;
3:19:00 PM: unset GOARCH;
3:19:00 PM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64';
3:19:00 PM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}";
3:19:00 PM: go version >&2;
3:19:00 PM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env"
3:19:00 PM: go version go1.12 linux/amd64
3:19:00 PM: Installing missing commands
3:19:00 PM: Verify run directory
3:19:01 PM: ​
3:19:01 PM: ┌─────────────────────────────┐
3:19:01 PM: │        Netlify Build        │
3:19:01 PM: └─────────────────────────────┘
3:19:01 PM: ​
3:19:01 PM: ❯ Version
3:19:01 PM:   @netlify/build 2.0.10
3:19:01 PM: ​
3:19:01 PM: ❯ Flags
3:19:01 PM:   deployId: 5ef12e428e74c100083dad13
3:19:01 PM:   mode: buildbot
3:19:01 PM: ​
3:19:01 PM: ❯ Current directory
3:19:01 PM:   /opt/build/repo
3:19:01 PM: ​
3:19:01 PM: ❯ Config file
3:19:01 PM:   /opt/build/repo/netlify.toml
3:19:01 PM: ​
3:19:01 PM: ❯ Context
3:19:01 PM:   deploy-preview
3:19:01 PM: ​
3:19:01 PM: ┌────────────────────────────────────┐
3:19:01 PM: │ 1. build.command from netlify.toml │
3:19:01 PM: └────────────────────────────────────┘
3:19:01 PM: ​
3:19:01 PM: $ DEBUG=* eleventy
3:19:01 PM: bash: eleventy: command not found
3:19:01 PM: ​
3:19:01 PM: ┌─────────────────────────────┐
3:19:01 PM: │   "build.command" failed    │
3:19:01 PM: └─────────────────────────────┘
3:19:01 PM: ​
3:19:01 PM:   Error message
3:19:01 PM:   Command failed with exit code 127: DEBUG=* eleventy
3:19:01 PM: ​
3:19:01 PM:   Error location
3:19:01 PM:   In build.command from netlify.toml:
3:19:01 PM:   DEBUG=* eleventy
3:19:01 PM: ​
3:19:01 PM:   Resolved config
3:19:01 PM:   build:
3:19:01 PM:     command: DEBUG=* eleventy
3:19:01 PM:     publish: /opt/build/repo/_site
3:19:01 PM: Caching artifacts
3:19:01 PM: Started saving node modules
3:19:01 PM: Finished saving node modules
3:19:01 PM: Started saving build plugins
3:19:01 PM: Finished saving build plugins
3:19:01 PM: Started saving pip cache
3:19:09 PM: Finished saving pip cache
3:19:09 PM: Started saving emacs cask dependencies
3:19:09 PM: Finished saving emacs cask dependencies
3:19:09 PM: Started saving maven dependencies
3:19:09 PM: Finished saving maven dependencies
3:19:09 PM: Started saving boot dependencies
3:19:09 PM: Finished saving boot dependencies
3:19:09 PM: Started saving go dependencies
3:19:11 PM: Finished saving go dependencies
3:19:14 PM: Error running command: Build script returned non-zero exit code: 1
3:19:14 PM: Failing build: Failed to build site
3:19:14 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
3:19:14 PM: Finished processing build request in 30.388999658s

These are my build settings:

I’ve been deploying with eleventy for about 9 months with no issue like this popping up. I’ve tried changing my command to “eleventy” and a combination of “eleventy build” without any success. I’m not sure if my build settings got reset somehow but so far have been unable to find a solution in the documentation.

hmm, could you post your package.json please?

Here you go!
{
“name”: “Stephanie Stimac”,
“version”: “5.0.0”,
“description”: “The technical and design blog of Stephanie Stimac”,
“scripts”: {
“build”: “npx eleventy”,
“watch”: “npx eleventy --watch”,
“debug”: “DEBUG=* npx eleventy”
},
“repository”: {
“type”: “git”,
“url”: “git://github.com/ststimac/stephaniestimac-blog.git”
},
“author”: {
“name”: “Stephanie Stimac”,
“email”: “steph.stimac@gmail.com”,
“url”: “https://stephaniestimac.com
},
“license”: “MIT”,
“bugs”: {
“url”: “Issues · 11ty/eleventy-base-blog · GitHub
},
“homepage”: “GitHub - 11ty/eleventy-base-blog: A starter repository for a blog web site using the Eleventy static site generator.”,
“devDependencies”: {
@11ty/eleventy”: “^0.8.3”,
@11ty/eleventy-plugin-rss”: “^1.0.7”,
@11ty/eleventy-plugin-syntaxhighlight”: “^3.0.1”
},
“dependencies”: {
“luxon”: “^1.23.0”,
“markdown-it”: “^10.0.0”,
“markdown-it-anchor”: “^5.2.7”
}
}

cool, i just answered the same question this morning - you should check here: