Build fails with exit code 1 and 2 - Eleventy site which builds locally

Site name: devsites.netlify.app

The site builds locally without any problems, but when I push to GitHub (or trigger a deploy in Netlify) the site doesn’t build properly.

There are multiple logs below, they mention python versions and node versions so I have tried to set these with environment variables but this has not helped.

I’ve also updated node on my own PC, and checked my package.json to see if any dependencies are not being used or need to be updated.

I have enabled debug logs but I’m not sure what I am looking for.

I’ve put some files into a directory which my Eleventy setup ignores to try and find out if they are the problem - I put my sass folder in there and a js file. Ignoring them does change the logs but still no build - both logs are pasted below. The first is with these folders and files ignored, the second with them in the project.

And I have changed the build command in the Netlify dashboard to ‘eleventy’, because a post on here says not to use ‘build’ (I’ve never needed to alter this before though). This hasn’t helped either.

Hopefully someone can help, will really appreciate it.

Thanks!

Build logs:


7:17:51 AM: Build ready to start
7:17:54 AM: build-image version: 6ebfb829398e07eb99ad5455777162ff19838822 (xenial)
7:17:54 AM: build-image tag: v3.10.5
7:17:54 AM: buildbot version: 0854df8549ceb2ae5c3f0bb7326040a5c2ced0c5
7:17:54 AM: Building without cache
7:17:54 AM: Starting to prepare the repo for build
7:17:54 AM: No cached dependencies found. Cloning fresh repo
7:17:54 AM: git clone https://github.com/zgparsons/usefulwebdev
7:17:57 AM: Preparing Git Reference refs/heads/master
7:17:57 AM: Parsing package.json dependencies
7:17:58 AM: 
​
❯ Initial build environment
baseRelDir: true
branch: master
context: production
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: 8de4a991-6c2e-4935-8236-8409688de80d
​
❯ UI build settings
baseRelDir: true
build:
  command: eleventy
  environment:
    - NETLIFY_BUILD_DEBUG
  publish: _site
​
❯ Resolved build environment
branch: master
buildDir: /opt/build/repo
configPath: /opt/build/repo/netlify.toml
context: production
env: []
​
❯ Resolved config
build:
  command: DEBUG=* eleventy
  commandOrigin: config
  environment:
    - NETLIFY_BUILD_DEBUG
  publish: /opt/build/repo/_site
  publishOrigin: config

7:17:58 AM: Different build command detected, going to use the one specified in the Netlify configuration file: 'DEBUG=* eleventy' versus 'eleventy' in the Netlify UI
7:17:58 AM: Starting build script
7:17:59 AM: Installing dependencies
7:17:59 AM: Python version set to 2.7
7:18:00 AM: Downloading and installing node v10.24.1...
7:18:00 AM: Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.xz...
7:18:01 AM: Computing checksum with sha256sum
7:18:01 AM: Checksums matched!
7:18:03 AM: Now using node v10.24.1 (npm v6.14.12)
7:18:03 AM: Started restoring cached build plugins
7:18:03 AM: Finished restoring cached build plugins
7:18:03 AM: Attempting ruby version 2.6.2, read from environment
7:18:05 AM: Using ruby version 2.6.2
7:18:05 AM: Using PHP version 5.6
7:18:05 AM: Started restoring cached node modules
7:18:05 AM: Finished restoring cached node modules
7:18:06 AM: Installing NPM modules using NPM version 6.14.12
7:18:11 AM: npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
7:18:20 AM: npm notice created a lockfile as package-lock.json. You should commit this file.
7:18:20 AM: npm WARN notsup Unsupported engine for @11ty/eleventy@1.0.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:18:20 AM: npm WARN notsup Not compatible with your version of node/npm: @11ty/eleventy@1.0.0
7:18:20 AM: npm WARN notsup Unsupported engine for luxon@2.3.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:18:20 AM: npm WARN notsup Not compatible with your version of node/npm: luxon@2.3.0
7:18:20 AM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
7:18:20 AM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
7:18:20 AM: npm WARN notsup Unsupported engine for yargs@17.1.1: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:18:20 AM: npm WARN notsup Not compatible with your version of node/npm: yargs@17.1.1
7:18:20 AM: npm WARN markdown-it-anchor@8.4.1 requires a peer of @types/markdown-it@* but none is installed. You must install peer dependencies yourself.
7:18:20 AM: added 385 packages from 368 contributors and audited 388 packages in 12.968s
7:18:20 AM: 38 packages are looking for funding
7:18:20 AM:   run `npm fund` for details
7:18:20 AM: found 0 vulnerabilities
7:18:20 AM: NPM modules installed
7:18:20 AM: Started restoring cached go cache
7:18:20 AM: Finished restoring cached go cache
7:18:20 AM: Installing Go version 1.12
7:18:26 AM: unset GOOS;
7:18:26 AM: unset GOARCH;
7:18:26 AM: export GOROOT='/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64';
7:18:26 AM: export PATH="/opt/buildhome/.gimme_cache/versions/go1.12.linux.amd64/bin:${PATH}";
7:18:26 AM: go version >&2;
7:18:26 AM: export GIMME_ENV="/opt/buildhome/.gimme_cache/env/go1.12.linux.amd64.env"
7:18:26 AM: go version go1.12 linux/amd64
7:18:26 AM: Installing missing commands
7:18:26 AM: Verify run directory
7:18:28 AM: ​
7:18:28 AM: ────────────────────────────────────────────────────────────────
7:18:28 AM:   Netlify Build                                                 
7:18:28 AM: ────────────────────────────────────────────────────────────────
7:18:28 AM: ​
7:18:28 AM: ❯ Version
7:18:28 AM:   @netlify/build 26.2.3
7:18:28 AM: ​
7:18:28 AM: ❯ Flags
7:18:28 AM:   apiHost: api.netlify.com
7:18:28 AM:   baseRelDir: true
7:18:28 AM:   branch: master
7:18:28 AM:   buildId: 6200c79f6a916d38996fc785
7:18:28 AM:   buildbotServerSocket: /tmp/netlify-buildbot-socket
7:18:28 AM:   cacheDir: /opt/build/cache
7:18:28 AM:   cachedConfigPath: /tmp/netlify_config.json
7:18:28 AM:   context: production
7:18:28 AM:   cwd: /opt/build/repo
7:18:28 AM:   deployId: 6200c79f6a916d38996fc787
7:18:28 AM:   featureFlags:
7:18:28 AM:     - buildbot_build_go_functions
7:18:28 AM:     - buildbot_create_functions_manifest
7:18:28 AM:     - zisi_parse_isc
7:18:28 AM:   framework: eleventy
7:18:28 AM:   functionsDistDir: /tmp/zisi-6200c79f6a916d38996fc787
7:18:28 AM:   mode: buildbot
7:18:28 AM:   nodePath: /opt/buildhome/.nvm/versions/node/v10.24.1/bin/node
7:18:28 AM:   repositoryRoot: /opt/build/repo
7:18:28 AM:   saveConfig: true
7:18:28 AM:   sendStatus: true
7:18:28 AM:   siteId: 8de4a991-6c2e-4935-8236-8409688de80d
7:18:28 AM:   statsd:
7:18:28 AM:     host: 10.128.0.97
7:18:28 AM:     port: 8125
7:18:28 AM:   testOpts:
7:18:28 AM:     silentLingeringProcesses: ''
7:18:28 AM: ​
7:18:28 AM: ❯ Current directory
7:18:28 AM:   /opt/build/repo
7:18:28 AM: ​
7:18:28 AM: ❯ Config file
7:18:28 AM:   /opt/build/repo/netlify.toml
7:18:28 AM: ​
7:18:28 AM: ❯ Resolved config
7:18:28 AM:   build:
7:18:28 AM:     command: DEBUG=* eleventy
7:18:28 AM:     commandOrigin: config
7:18:28 AM:     environment:
7:18:28 AM:       - NETLIFY_BUILD_DEBUG
7:18:28 AM:     publish: /opt/build/repo/_site
7:18:28 AM:     publishOrigin: config
7:18:28 AM: ​
7:18:28 AM: ❯ Context
7:18:28 AM:   production
7:18:28 AM: ​
7:18:28 AM: ────────────────────────────────────────────────────────────────
7:18:28 AM:   1. build.command from netlify.toml                            
7:18:28 AM: ────────────────────────────────────────────────────────────────
7:18:28 AM: ​
7:18:28 AM: $ DEBUG=* eleventy
7:18:28 AM: Eleventy requires Node 12. You will need to upgrade Node to use Eleventy!
7:18:28 AM: ​
7:18:28 AM: ────────────────────────────────────────────────────────────────
7:18:28 AM:   "build.command" failed                                        
7:18:28 AM: ────────────────────────────────────────────────────────────────
7:18:28 AM: ​
7:18:28 AM:   Error message
7:18:28 AM:   Command failed with exit code 1: DEBUG=* eleventy
7:18:28 AM: ​
7:18:28 AM:   Error location
7:18:28 AM:   In build.command from netlify.toml:
7:18:28 AM:   DEBUG=* eleventy
7:18:28 AM: ​
7:18:28 AM:   Resolved config
7:18:28 AM:   build:
7:18:28 AM:     command: DEBUG=* eleventy
7:18:28 AM:     commandOrigin: config
7:18:28 AM:     environment:
7:18:28 AM:       - NETLIFY_BUILD_DEBUG
7:18:28 AM:     publish: /opt/build/repo/_site
7:18:28 AM:     publishOrigin: config
7:18:28 AM: Caching artifacts
7:18:28 AM: Started saving node modules
7:18:28 AM: Finished saving node modules
7:18:28 AM: Started saving build plugins
7:18:28 AM: Finished saving build plugins
7:18:28 AM: Started saving pip cache
7:18:28 AM: Finished saving pip cache
7:18:28 AM: Started saving emacs cask dependencies
7:18:29 AM: Finished saving emacs cask dependencies
7:18:29 AM: Started saving maven dependencies
7:18:29 AM: Finished saving maven dependencies
7:18:29 AM: Started saving boot dependencies
7:18:29 AM: Finished saving boot dependencies
7:18:29 AM: Started saving rust rustup cache
7:18:29 AM: Finished saving rust rustup cache
7:18:29 AM: Started saving go dependencies
7:18:30 AM: Finished saving go dependencies
7:18:34 AM: Build failed due to a user error: Build script returned non-zero exit code: 2
7:18:34 AM: Creating deploy upload records
7:18:34 AM: Failing build: Failed to build site
7:18:34 AM: Failed during stage 'building site': Build script returned non-zero exit code: 2
7:18:34 AM: Finished processing build request in 40.590860457s

Earlier log which includes ‘gyp’ errors



7:34:03 PM: Build ready to start
7:34:05 PM: build-image version: 6ebfb829398e07eb99ad5455777162ff19838822 (xenial)
7:34:05 PM: build-image tag: v3.10.5
7:34:05 PM: buildbot version: 0854df8549ceb2ae5c3f0bb7326040a5c2ced0c5
7:34:05 PM: Building without cache
7:34:05 PM: Starting to prepare the repo for build
7:34:06 PM: No cached dependencies found. Cloning fresh repo
7:34:06 PM: git clone https://github.com/zgparsons/usefulwebdev
7:34:08 PM: Preparing Git Reference refs/heads/master
7:34:09 PM: Parsing package.json dependencies
7:34:10 PM: 
​
❯ Initial build environment
baseRelDir: true
branch: master
context: production
cwd: /opt/build/repo
featureFlags: []
mode: buildbot
repositoryRoot: /opt/build/repo
siteId: 8de4a991-6c2e-4935-8236-8409688de80d
​
❯ UI build settings
baseRelDir: true
build:
  command: eleventy
  environment:
    - NETLIFY_BUILD_DEBUG
  publish: _site
​
❯ Resolved build environment
branch: master
buildDir: /opt/build/repo
configPath: /opt/build/repo/netlify.toml
context: production
env: []
​
❯ Resolved config
build:
  command: DEBUG=* eleventy
  commandOrigin: config
  environment:
    - NETLIFY_BUILD_DEBUG
  publish: /opt/build/repo/_site
  publishOrigin: config

7:34:10 PM: Different build command detected, going to use the one specified in the Netlify configuration file: 'DEBUG=* eleventy' versus 'eleventy' in the Netlify UI
7:34:10 PM: Starting build script
7:34:10 PM: Installing dependencies
7:34:10 PM: Python version set to 2.7
7:34:12 PM: Downloading and installing node v10.24.1...
7:34:12 PM: Downloading https://nodejs.org/dist/v10.24.1/node-v10.24.1-linux-x64.tar.xz...
7:34:12 PM: Computing checksum with sha256sum
7:34:13 PM: Checksums matched!
7:34:15 PM: Now using node v10.24.1 (npm v6.14.12)
7:34:15 PM: Started restoring cached build plugins
7:34:15 PM: Finished restoring cached build plugins
7:34:16 PM: Attempting ruby version 2.6.2, read from environment
7:34:17 PM: Using ruby version 2.6.2
7:34:17 PM: Using PHP version 5.6
7:34:17 PM: Started restoring cached node modules
7:34:17 PM: Finished restoring cached node modules
7:34:18 PM: Installing NPM modules using NPM version 6.14.12
7:34:20 PM: npm WARN deprecated request@2.88.2: request has been deprecated, see https://github.com/request/request/issues/3142
7:34:20 PM: npm WARN deprecated puppeteer@5.5.0: Version no longer supported. Upgrade to @latest
7:34:21 PM: npm WARN deprecated har-validator@5.1.5: this library is no longer supported
7:34:22 PM: npm WARN deprecated uuid@3.4.0: Please upgrade  to version 7 or higher.  Older versions may use Math.random() in certain circumstances, which is known to be problematic.  See https://v8.dev/blog/math-random for details.
7:34:25 PM: npm WARN deprecated debug@4.1.1: Debug versions >=3.2.0 <3.2.7 || >=4 <4.3.1 have a low-severity ReDos regression when used in a Node.js environment. It is recommended you upgrade to 3.2.7 or 4.3.1. (https://github.com/visionmedia/debug/issues/797)
7:34:38 PM: > puppeteer@5.5.0 install /opt/build/repo/node_modules/puppeteer
7:34:38 PM: > node install.js
7:34:48 PM: Chromium (818858) downloaded to /opt/build/repo/node_modules/puppeteer/.local-chromium/linux-818858
7:34:48 PM: > node-sass@7.0.1 install /opt/build/repo/node_modules/node-sass
7:34:48 PM: > node scripts/install.js
7:34:49 PM: Downloading binary from https://github.com/sass/node-sass/releases/download/v7.0.1/linux-x64-64_binding.node
7:34:49 PM: Cannot download "https://github.com/sass/node-sass/releases/download/v7.0.1/linux-x64-64_binding.node":
7:34:49 PM: HTTP error 404 Not Found
7:34:49 PM: Hint: If github.com is not accessible in your location
7:34:49 PM:       try setting a proxy via HTTP_PROXY, e.g.
7:34:49 PM:       export HTTP_PROXY=http://example.com:1234
7:34:49 PM: or configure npm proxy via
7:34:49 PM:       npm config set proxy http://example.com:8080
7:34:49 PM: > node-sass@7.0.1 postinstall /opt/build/repo/node_modules/node-sass
7:34:49 PM: > node scripts/build.js
7:34:49 PM: Building: /opt/buildhome/.nvm/versions/node/v10.24.1/bin/node /opt/build/repo/node_modules/node-gyp/bin/node-gyp.js rebuild --verbose --libsass_ext= --libsass_cflags= --libsass_ldflags= --libsass_library=
7:34:49 PM: gyp info it worked if it ends with ok
7:34:49 PM: gyp verb cli [ '/opt/buildhome/.nvm/versions/node/v10.24.1/bin/node',
7:34:49 PM: gyp verb cli   '/opt/build/repo/node_modules/node-gyp/bin/node-gyp.js',
7:34:49 PM: gyp verb cli   'rebuild',
7:34:49 PM: gyp verb cli   '--verbose',
7:34:49 PM: gyp verb cli   '--libsass_ext=',
7:34:49 PM: gyp verb cli   '--libsass_cflags=',
7:34:49 PM: gyp verb cli   '--libsass_ldflags=',
7:34:49 PM: gyp verb cli   '--libsass_library=' ]
7:34:49 PM: gyp info using node-gyp@8.4.1
7:34:49 PM: gyp info using node@10.24.1 | linux | x64
7:34:49 PM: gyp verb command rebuild []
7:34:49 PM: gyp verb command clean []
7:34:49 PM: gyp verb clean removing "build" directory
7:34:49 PM: gyp verb command configure []
7:34:49 PM: gyp verb find Python Python is not set from command line or npm configuration
7:34:49 PM: gyp verb find Python Python is not set from environment variable PYTHON
7:34:49 PM: gyp verb find Python checking if "python3" can be used
7:34:49 PM: gyp verb find Python - executing "python3" to get executable path
7:34:49 PM: gyp verb find Python - executable path is "/usr/bin/python3"
7:34:49 PM: gyp verb find Python - executing "/usr/bin/python3" to get version
7:34:50 PM: gyp verb find Python - version is "3.5.2"
7:34:50 PM: gyp verb find Python - version is 3.5.2 - should be >=3.6.0
7:34:50 PM: gyp verb find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
7:34:50 PM: gyp verb find Python checking if "python" can be used
7:34:50 PM: gyp verb find Python - executing "python" to get executable path
7:34:50 PM: gyp verb find Python - executable path is "/opt/buildhome/python2.7/bin/python"
7:34:50 PM: gyp verb find Python - executing "/opt/buildhome/python2.7/bin/python" to get version
7:34:50 PM: gyp verb find Python - version is "2.7.12"
7:34:50 PM: gyp verb find Python - version is 2.7.12 - should be >=3.6.0
7:34:50 PM: gyp verb find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
7:34:50 PM: gyp ERR! find Python
7:34:50 PM: gyp ERR! find Python Python is not set from command line or npm configuration
7:34:50 PM: gyp ERR! find Python Python is not set from environment variable PYTHON
7:34:50 PM: gyp ERR! find Python checking if "python3" can be used
7:34:50 PM: gyp ERR! find Python - executable path is "/usr/bin/python3"
7:34:50 PM: gyp ERR! find Python - version is "3.5.2"
7:34:50 PM: gyp ERR! find Python - version is 3.5.2 - should be >=3.6.0
7:34:50 PM: gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
7:34:50 PM: gyp ERR! find Python checking if "python" can be used
7:34:50 PM: gyp ERR! find Python - executable path is "/opt/buildhome/python2.7/bin/python"
7:34:50 PM: gyp ERR! find Python - version is "2.7.12"
7:34:50 PM: gyp ERR! find Python - version is 2.7.12 - should be >=3.6.0
7:34:50 PM: gyp ERR! find Python - THIS VERSION OF PYTHON IS NOT SUPPORTED
7:34:50 PM: gyp ERR! find Python
7:34:50 PM: gyp ERR! find Python **********************************************************
7:34:50 PM: gyp ERR! find Python You need to install the latest version of Python.
7:34:50 PM: gyp ERR! find Python Node-gyp should be able to find and use Python. If not,
7:34:50 PM: gyp ERR! find Python you can try one of the following options:
7:34:50 PM: gyp ERR! find Python - Use the switch --python="/path/to/pythonexecutable"
7:34:50 PM: gyp ERR! find Python   (accepted by both node-gyp and npm)
7:34:50 PM: gyp ERR! find Python - Set the environment variable PYTHON
7:34:50 PM: gyp ERR! find Python - Set the npm configuration variable python:
7:34:50 PM: gyp ERR! find Python   npm config set python "/path/to/pythonexecutable"
7:34:50 PM: gyp ERR! find Python For more information consult the documentation at:
7:34:50 PM: gyp ERR! find Python https://github.com/nodejs/node-gyp#installation
7:34:50 PM: gyp ERR! find Python **********************************************************
7:34:50 PM: gyp ERR! find Python
7:34:50 PM: gyp ERR! configure error
7:34:50 PM: gyp ERR! stack Error: Could not find any Python installation to use
7:34:50 PM: gyp ERR! stack     at PythonFinder.fail (/opt/build/repo/node_modules/node-gyp/lib/find-python.js:330:47)
7:34:50 PM: gyp ERR! stack     at PythonFinder.runChecks (/opt/build/repo/node_modules/node-gyp/lib/find-python.js:159:21)
7:34:50 PM: gyp ERR! stack     at PythonFinder.<anonymous> (/opt/build/repo/node_modules/node-gyp/lib/find-python.js:266:16)
7:34:50 PM: gyp ERR! stack     at PythonFinder.execFileCallback (/opt/build/repo/node_modules/node-gyp/lib/find-python.js:297:7)
7:34:50 PM: gyp ERR! stack     at ChildProcess.exithandler (child_process.js:285:7)
7:34:50 PM: gyp ERR! stack     at ChildProcess.emit (events.js:198:13)
7:34:50 PM: gyp ERR! stack     at maybeClose (internal/child_process.js:982:16)
7:34:50 PM: gyp ERR! stack     at Socket.stream.socket.on (internal/child_process.js:389:11)
7:34:50 PM: gyp ERR! stack     at Socket.emit (events.js:198:13)
7:34:50 PM: gyp ERR! stack     at Pipe._handle.close (net.js:607:12)
7:34:50 PM: gyp ERR! System Linux 5.4.129+
7:34:50 PM: gyp ERR! command "/opt/buildhome/.nvm/versions/node/v10.24.1/bin/node" "/opt/build/repo/node_modules/node-gyp/bin/node-gyp.js" "rebuild" "--verbose" "--libsass_ext=" "--libsass_cflags=" "--libsass_ldflags=" "--libsass_library="
7:34:50 PM: gyp ERR! cwd /opt/build/repo/node_modules/node-sass
7:34:50 PM: gyp ERR! node -v v10.24.1
7:34:50 PM: gyp ERR! node-gyp -v v8.4.1
7:34:50 PM: gyp ERR! not ok
7:34:50 PM: Build failed with error code: 1
7:34:50 PM: npm WARN notsup Unsupported engine for node-sass@7.0.1: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: node-sass@7.0.1
7:34:50 PM: npm WARN notsup Unsupported engine for sass-graph@4.0.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: sass-graph@4.0.0
7:34:50 PM: npm WARN notsup Unsupported engine for npmlog@6.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: npmlog@6.0.0
7:34:50 PM: npm WARN notsup Unsupported engine for @npmcli/fs@1.1.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: @npmcli/fs@1.1.0
7:34:50 PM: npm WARN notsup Unsupported engine for gauge@4.0.0: wanted: {"node":"^12.13.0 || ^14.15.0 || >=16"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: gauge@4.0.0
7:34:50 PM: npm WARN notsup Unsupported engine for yargs@17.3.1: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: yargs@17.3.1
7:34:50 PM: npm WARN notsup Unsupported engine for yargs-parser@21.0.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: yargs-parser@21.0.0
7:34:50 PM: npm WARN notsup Unsupported engine for @11ty/eleventy@1.0.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: @11ty/eleventy@1.0.0
7:34:50 PM: npm WARN notsup Unsupported engine for luxon@2.3.0: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: luxon@2.3.0
7:34:50 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@~2.3.2 (node_modules/chokidar/node_modules/fsevents):
7:34:50 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
7:34:50 PM: npm WARN notsup Unsupported engine for yargs@17.1.1: wanted: {"node":">=12"} (current: {"node":"10.24.1","npm":"6.14.12"})
7:34:50 PM: npm WARN notsup Not compatible with your version of node/npm: yargs@17.1.1
7:34:50 PM: npm WARN markdown-it-anchor@8.4.1 requires a peer of @types/markdown-it@* but none is installed. You must install peer dependencies yourself.
7:34:50 PM: npm ERR! code ELIFECYCLE
7:34:50 PM: npm ERR! errno 1
7:34:50 PM: npm ERR! node-sass@7.0.1 postinstall: `node scripts/build.js`
7:34:50 PM: npm ERR! Exit status 1
7:34:50 PM: npm ERR!
7:34:50 PM: npm ERR! Failed at the node-sass@7.0.1 postinstall script.
7:34:50 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
7:34:50 PM: npm ERR! A complete log of this run can be found in:
7:34:50 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-02-06T19_34_50_698Z-debug.log
7:34:50 PM: Error during NPM install
7:34:50 PM: Build was terminated: Build script returned non-zero exit code: 1
7:34:50 PM: Creating deploy upload records
7:34:50 PM: Failing build: Failed to build site
7:34:50 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
7:34:50 PM: Finished processing build request in 45.426379234s

Hey @zgparsons

This line is saying the build is using node.js v10.

And then this line is saying the version of Eleventy need node.js v12 (minimum)

There are multiple ways to set the Node.js version as outlined in Manage Build Dependencies.

If you have further questions or issues, don’t hesitate to reply.

2 Likes

Thank you for your help!

I have now included a .nvmrc file which specifies using node 14. I suppose as time goes on an dependencies update this needs to be updated to bring the project up to date.

Thanks again, appreciate you taking the time to reply.

This is certainly a possibility. As mentioned in the documentation previously linked, versions (such as node.js) are pinned in order that things don’t break. So if you update (especially main) dependencies, there is a chance you will need to change the underlying build version too.

1 Like

Thanks again for your help :+1:

1 Like