Unable to deploy Eleventy site to Netlify

I’m trying to deploy site changes to Netlify and the builds are not building.

Apparently, it’s been like this for some time and I haven’t noticed until today. Thanks.

Hi @colabottles

You might find [Support Guide] Frequently encountered problems during builds provides some answers.

Unfortunately the deploy log is private. Can you post the log here (at least anything pertaining to errors).

1 Like

Hi @coelmay Here it is;

2:33:49 PM: Build ready to start
2:33:51 PM: build-image version: c97e5a221e3fdb93dfecc4e878977417130d2bfc (xenial)
2:33:51 PM: build-image tag: v3.10.4
2:33:51 PM: buildbot version: b9fe2d4aead91245e5ab227e25498d66c4f1ea02
2:33:52 PM: Fetching cached dependencies
2:33:52 PM: Starting to download cache of 806.8MB
2:33:59 PM: Finished downloading cache in 7.67615437s
2:33:59 PM: Starting to extract cache
2:34:16 PM: Finished extracting cache in 16.733578144s
2:34:16 PM: Finished fetching cache in 24.536154991s
2:34:16 PM: Starting to prepare the repo for build
2:34:17 PM: Preparing Git Reference refs/heads/main
2:34:19 PM: Parsing package.json dependencies
2:34:20 PM: Starting build script
2:34:20 PM: Installing dependencies
2:34:20 PM: Python version set to 2.7
2:34:21 PM: Started restoring cached node version
2:34:27 PM: Finished restoring cached node version
2:34:27 PM: Attempting node version '10' from .nvmrc
2:34:27 PM: v10.24.1 is already installed.
2:34:28 PM: Now using node v10.24.1 (npm v6.14.12)
2:34:28 PM: Started restoring cached build plugins
2:34:28 PM: Finished restoring cached build plugins
2:34:28 PM: Attempting ruby version 2.6.2, read from environment
2:34:30 PM: Using ruby version 2.6.2
2:34:30 PM: Using PHP version 5.6
2:34:30 PM: Started restoring cached node modules
2:34:30 PM: Finished restoring cached node modules
2:34:30 PM: Installing NPM modules using NPM version 6.14.12
2:35:15 PM: npm WARN read-shrinkwrap This version of npm is compatible with lockfileVersion@1, but package-lock.json was generated for lockfileVersion@2. I'll try to do my best with it!
2:35:15 PM: > @netlify/esbuild@0.13.6 postinstall /opt/build/repo/node_modules/netlify-cli/node_modules/@netlify/esbuild
2:35:15 PM: > node install.js
2:35:16 PM: > netlify-cli@8.15.1 postinstall /opt/build/repo/node_modules/netlify-cli
2:35:16 PM: > node ./scripts/postinstall.js
2:35:16 PM: /opt/build/repo/node_modules/netlify-cli/src/commands/base-command.js:87
2:35:16 PM:   analytics = { startTime: process.hrtime.bigint() }
2:35:16 PM:   ^^^^^^^^^
2:35:16 PM: SyntaxError: Unexpected identifier
2:35:16 PM:     at Module._compile (internal/modules/cjs/loader.js:723:23)
2:35:16 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
2:35:16 PM:     at Module.load (internal/modules/cjs/loader.js:653:32)
2:35:16 PM:     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
2:35:16 PM:     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
2:35:16 PM:     at Module.require (internal/modules/cjs/loader.js:692:17)
2:35:16 PM:     at require (internal/modules/cjs/helpers.js:25:18)
2:35:16 PM:     at Object.<anonymous> (/opt/build/repo/node_modules/netlify-cli/src/commands/index.js:1:21)
2:35:16 PM:     at Module._compile (internal/modules/cjs/loader.js:778:30)
2:35:16 PM:     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
2:35:21 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.
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/fsevents):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: fsevents@2.3.2 (node_modules/netlify-cli/node_modules/fsevents):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for fsevents@2.3.2: wanted {"os":"darwin","arch":"any"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/routing-local-proxy-win32-x64@0.34.1 (node_modules/netlify-cli/node_modules/@netlify/routing-local-proxy-win32-x64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/routing-local-proxy-win32-x64@0.34.1: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/routing-local-proxy-darwin-x64@0.34.1 (node_modules/netlify-cli/node_modules/@netlify/routing-local-proxy-darwin-x64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/routing-local-proxy-darwin-x64@0.34.1: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/routing-local-proxy-darwin-arm64@0.34.1 (node_modules/netlify-cli/node_modules/@netlify/routing-local-proxy-darwin-arm64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/routing-local-proxy-darwin-arm64@0.34.1: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-win32-x64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-win32-x64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-win32-x64@1.1.1: wanted {"os":"win32","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-win32-ia32@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-win32-ia32):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-win32-ia32@1.1.1: wanted {"os":"win32","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-openbsd-x64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-openbsd-x64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-openbsd-x64@1.1.1: wanted {"os":"openbsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-linux-ppc64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-linux-ppc64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-linux-ppc64@1.1.1: wanted {"os":"linux","arch":"ppc64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-linux-ia32@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-linux-ia32):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-linux-ia32@1.1.1: wanted {"os":"linux","arch":"ia32"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-linux-arm64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-linux-arm64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-linux-arm64@1.1.1: wanted {"os":"linux","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-linux-arm@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-linux-arm):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-linux-arm@1.1.1: wanted {"os":"linux","arch":"arm"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-freebsd-x64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-freebsd-x64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-freebsd-x64@1.1.1: wanted {"os":"freebsd","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-freebsd-arm64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-freebsd-arm64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-freebsd-arm64@1.1.1: wanted {"os":"freebsd","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-darwin-x64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-darwin-x64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-darwin-x64@1.1.1: wanted {"os":"darwin","arch":"x64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm WARN optional SKIPPING OPTIONAL DEPENDENCY: @netlify/local-functions-proxy-darwin-arm64@1.1.1 (node_modules/netlify-cli/node_modules/@netlify/local-functions-proxy-darwin-arm64):
2:35:21 PM: npm WARN notsup SKIPPING OPTIONAL DEPENDENCY: Unsupported platform for @netlify/local-functions-proxy-darwin-arm64@1.1.1: wanted {"os":"darwin","arch":"arm64"} (current: {"os":"linux","arch":"x64"})
2:35:21 PM: npm ERR! code ELIFECYCLE
2:35:21 PM: npm ERR! errno 1
2:35:21 PM: npm ERR! netlify-cli@8.15.1 postinstall: `node ./scripts/postinstall.js`
2:35:21 PM: npm ERR! Exit status 1
2:35:21 PM: npm ERR!
2:35:21 PM: npm ERR! Failed at the netlify-cli@8.15.1 postinstall script.
2:35:21 PM: npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
2:35:21 PM: npm ERR! A complete log of this run can be found in:
2:35:21 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-01-31T21_35_21_956Z-debug.log
2:35:22 PM: Error during NPM install
2:35:22 PM: Build was terminated: Build script returned non-zero exit code: 1
2:35:22 PM: Creating deploy upload records
2:35:22 PM: Failing build: Failed to build site
2:35:22 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1
2:35:22 PM: Finished processing build request in 1m30.448386232s

I suggest it is because of the (very) old node version the build is using.

As seen two lines previous this version is coming from the .nvmrc in the repository.

I suggest changing this to node 14 (12 will soon enter end of life.)

2 Likes

That was it. Thanks @coelmay :slight_smile:

1 Like