Hi,
I am building a website with Eleventy version 2.0.1 and serverless plugin to render dynamic data.
The site works locally, but when deploying to GitHub and Netlify I get this error:
Runtime.UnhandledPromiseRejection: Error: ENOENT: no such file or directory, mkdir '.cache'
at process.<anonymous> (file:///var/runtime/index.mjs:1186:17)
at process.emit (node:events:513:28)
at emit (node:internal/process/promises:149:20)
at processPromiseRejections (node:internal/process/promises:283:27)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
Netlify internal ID: 01H5WRPDN9K41594Y9A8MKQ9W0
Netlify project url: https://dazzling-granita-b2cef8.netlify.app/
Can someone help please?
Full deploy log
6:16:31 PM: build-image version: ad28fb91fae632ef7f2e4d659a892d68ee2681a6 (focal)
6:16:31 PM: buildbot version: 751c8de2ba48c52549712392ca0244c53d39c3c1
6:16:31 PM: Fetching cached dependencies
6:16:31 PM: Starting to download cache of 108.4MB
6:16:32 PM: Finished downloading cache in 1.156s
6:16:32 PM: Starting to extract cache
6:16:33 PM: Finished extracting cache in 937ms
6:16:33 PM: Finished fetching cache in 2.164s
6:16:33 PM: Starting to prepare the repo for build
6:16:33 PM: Preparing Git Reference refs/heads/test
6:16:35 PM: Starting to install dependencies
6:16:35 PM: Python version set to 3.8
6:16:35 PM: Attempting Ruby version 2.7.2, read from environment
6:16:36 PM: Using Ruby version 2.7.2
6:16:36 PM: Started restoring cached go cache
6:16:36 PM: Finished restoring cached go cache
6:16:36 PM: go version go1.19.11 linux/amd64
6:16:37 PM: Using PHP version 8.0
6:16:37 PM: Started restoring cached Node.js version
6:16:38 PM: Finished restoring cached Node.js version
6:16:38 PM: Downloading and installing node v18.17.0...
6:16:38 PM: Downloading https://nodejs.org/dist/v18.17.0/node-v18.17.0-linux-x64.tar.xz...
6:16:39 PM: Computing checksum with sha256sum
6:16:39 PM: Checksums matched!
6:16:41 PM: Enabling Node.js Corepack
6:16:41 PM: Started restoring cached build plugins
6:16:41 PM: Finished restoring cached build plugins
6:16:41 PM: Started restoring cached corepack dependencies
6:16:41 PM: Finished restoring cached corepack dependencies
6:16:41 PM: No npm workspaces detected
6:16:41 PM: Started restoring cached node modules
6:16:41 PM: Finished restoring cached node modules
6:16:41 PM: Installing npm packages using npm version 9.6.7
6:16:42 PM: npm WARN old lockfile
6:16:42 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
6:16:42 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
6:16:42 PM: npm WARN old lockfile
6:16:42 PM: npm WARN old lockfile This is a one-time fix-up, please be patient...
6:16:42 PM: npm WARN old lockfile
6:16:45 PM: npm WARN old lockfile string-width-cjs: No matching version found for string-width-cjs@4.2.3.
6:16:45 PM: npm WARN old lockfile at module.exports (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
6:16:45 PM: npm WARN old lockfile at RegistryFetcher.manifest (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:119:22)
6:16:45 PM: npm WARN old lockfile at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24)
6:16:45 PM: npm WARN old lockfile Could not fetch metadata for string-width-cjs@4.2.3 string-width-cjs: No matching version found for string-width-cjs@4.2.3.
6:16:45 PM: npm WARN old lockfile at module.exports (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
6:16:45 PM: npm WARN old lockfile at RegistryFetcher.manifest (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:119:22)
6:16:45 PM: npm WARN old lockfile at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24) {
6:16:45 PM: npm WARN old lockfile code: 'ETARGET',
6:16:45 PM: npm WARN old lockfile type: 'version',
6:16:45 PM: npm WARN old lockfile wanted: '4.2.3',
6:16:45 PM: npm WARN old lockfile versions: [ '1.0.0', '5.1.1' ],
6:16:45 PM: npm WARN old lockfile distTags: { latest: '5.1.1' },
6:16:45 PM: npm WARN old lockfile defaultTag: 'latest'
6:16:45 PM: npm WARN old lockfile }
6:16:45 PM: npm WARN old lockfile strip-ansi-cjs: No matching version found for strip-ansi-cjs@6.0.1.
6:16:45 PM: npm WARN old lockfile at module.exports (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
6:16:45 PM: npm WARN old lockfile at RegistryFetcher.manifest (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:119:22)
6:16:45 PM: npm WARN old lockfile at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24)
6:16:45 PM: npm WARN old lockfile Could not fetch metadata for strip-ansi-cjs@6.0.1 strip-ansi-cjs: No matching version found for strip-ansi-cjs@6.0.1.
6:16:45 PM: npm WARN old lockfile at module.exports (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
6:16:45 PM: npm WARN old lockfile at RegistryFetcher.manifest (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:119:22)
6:16:45 PM: npm WARN old lockfile at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24) {
6:16:45 PM: npm WARN old lockfile code: 'ETARGET',
6:16:45 PM: npm WARN old lockfile type: 'version',
6:16:45 PM: npm WARN old lockfile wanted: '6.0.1',
6:16:45 PM: npm WARN old lockfile versions: [ '1.0.0', '2.0.0', '8.0.0' ],
6:16:45 PM: npm WARN old lockfile distTags: { latest: '8.0.0' },
6:16:45 PM: npm WARN old lockfile defaultTag: 'latest'
6:16:45 PM: npm WARN old lockfile }
6:16:45 PM: npm WARN old lockfile wrap-ansi-cjs: No matching version found for wrap-ansi-cjs@7.0.0.
6:16:45 PM: npm WARN old lockfile at module.exports (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
6:16:45 PM: npm WARN old lockfile at RegistryFetcher.manifest (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:119:22)
6:16:45 PM: npm WARN old lockfile at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24)
6:16:45 PM: npm WARN old lockfile Could not fetch metadata for wrap-ansi-cjs@7.0.0 wrap-ansi-cjs: No matching version found for wrap-ansi-cjs@7.0.0.
6:16:45 PM: npm WARN old lockfile at module.exports (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/npm-pick-manifest/lib/index.js:209:23)
6:16:45 PM: npm WARN old lockfile at RegistryFetcher.manifest (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/pacote/lib/registry.js:119:22)
6:16:45 PM: npm WARN old lockfile at async Array.<anonymous> (/opt/buildhome/.nvm/versions/node/v18.17.0/lib/node_modules/npm/node_modules/@npmcli/arborist/lib/arborist/build-ideal-tree.js:727:24) {
6:16:45 PM: npm WARN old lockfile code: 'ETARGET',
6:16:45 PM: npm WARN old lockfile type: 'version',
6:16:45 PM: npm WARN old lockfile wanted: '7.0.0',
6:16:45 PM: npm WARN old lockfile versions: [ '1.0.0', '8.0.0' ],
6:16:45 PM: npm WARN old lockfile distTags: { latest: '8.0.0' },
6:16:45 PM: npm WARN old lockfile defaultTag: 'latest'
6:16:45 PM: npm WARN old lockfile }
6:16:48 PM: added 276 packages, removed 118 packages, changed 35 packages, and audited 1046 packages in 6s
6:16:48 PM: 164 packages are looking for funding
6:16:48 PM: run `npm fund` for details
6:16:48 PM: 8 vulnerabilities (1 moderate, 7 high)
6:16:48 PM: To address issues that do not require attention, run:
6:16:48 PM: npm audit fix
6:16:48 PM: To address all issues (including breaking changes), run:
6:16:48 PM: npm audit fix --force
6:16:48 PM: Run `npm audit` for details.
6:16:48 PM: npm packages installed
6:16:48 PM: Install dependencies script success
6:16:48 PM: Starting build script
6:16:49 PM: Detected 2 framework(s)
6:16:49 PM: eleventy at version 2.0.1
6:16:49 PM: gulp at version 4.0.2
6:16:49 PM: Section completed: initializing
6:16:50 PM: Netlify Build
6:16:50 PM: ────────────────────────────────────────────────────────────────
6:16:50 PM:
6:16:50 PM: ❯ Version
6:16:50 PM: @netlify/build 29.17.1
6:16:50 PM:
6:16:50 PM: ❯ Flags
6:16:50 PM: baseRelDir: true
6:16:50 PM: buildId: 64baaf57e7e026000896206e
6:16:50 PM: deployId: 64baaf57e7e0260008962070
6:16:50 PM:
6:16:50 PM: ❯ Current directory
6:16:50 PM: /opt/build/repo
6:16:50 PM:
6:16:50 PM: ❯ Config file
6:16:50 PM: /opt/build/repo/netlify.toml
6:16:50 PM:
6:16:50 PM: ❯ Context
6:16:50 PM: production
6:16:50 PM:
6:16:50 PM: Build command from Netlify app
6:16:50 PM: ────────────────────────────────────────────────────────────────
6:16:50 PM:
6:16:50 PM: $ ELEVENTY_ENV=production npx @11ty/eleventy
6:16:51 PM: [11ty] Copied 54 files / Wrote 1 file in 0.28 seconds (v2.0.1)
6:16:51 PM:
6:16:51 PM: (build.command completed in 1.1s)
6:16:51 PM:
6:16:51 PM: Functions bundling
6:16:51 PM: ────────────────────────────────────────────────────────────────
6:16:51 PM:
6:16:51 PM: Packaging Functions from netlify/functions directory:
6:16:51 PM: - onrequest/index.js
6:16:51 PM:
6:16:54 PM:
6:16:54 PM: (Functions bundling completed in 2.4s)
6:16:54 PM:
6:17:02 PM: (Netlify Build completed in 11.5s)
6:17:04 PM: Section completed: building
6:17:06 PM: Finished processing build request in 34.845s
6:16:54 PM: Deploy site
6:16:54 PM: ────────────────────────────────────────────────────────────────
6:16:54 PM:
6:16:54 PM: Starting to deploy site from 'dist'
6:16:54 PM: Calculating files to upload
6:16:54 PM: 1 new files to upload
6:16:54 PM: 1 new functions to upload
6:17:02 PM: Section completed: deploying
6:17:02 PM: Site deploy was successfully initiated
6:17:02 PM:
6:17:02 PM: (Deploy site completed in 7.9s)
6:17:02 PM: Netlify Build Complete
6:17:02 PM: ────────────────────────────────────────────────────────────────
6:17:02 PM:
6:17:02 PM: Caching artifacts
6:17:02 PM: Started saving node modules
6:17:02 PM: Finished saving node modules
6:17:02 PM: Started saving build plugins
6:17:02 PM: Finished saving build plugins
6:17:02 PM: Started saving corepack cache
6:17:02 PM: Finished saving corepack cache
6:17:02 PM: Started saving pip cache
6:17:02 PM: Finished saving pip cache
6:17:02 PM: Started saving emacs cask dependencies
6:17:02 PM: Finished saving emacs cask dependencies
6:17:02 PM: Started saving maven dependencies
6:17:02 PM: Finished saving maven dependencies
6:17:02 PM: Started saving boot dependencies
6:17:02 PM: Finished saving boot dependencies
6:17:02 PM: Started saving rust rustup cache
6:17:02 PM: Finished saving rust rustup cache
6:17:02 PM: Started saving go dependencies
6:17:02 PM: Finished saving go dependencies
6:17:04 PM: Build script success
6:17:04 PM: Uploading Cache of size 130.6MB
6:17:06 PM: Section completed: cleanup
6:17:02 PM: Starting post processing
6:17:02 PM: Skipping HTML post processing
6:17:02 PM: Post processing - header rules
6:17:02 PM: Post processing - redirect rules
6:17:03 PM: Post processing done
6:17:03 PM: Section completed: postprocessing
6:17:04 PM: Site is live ✨```