The site is Netlify App. (Please pardon the site content. It’s a job I’m doing).
The long story/ background/ can skip this paragraph:
I had a site, made with Parcel.js, where the build would randomly fail even if I just made a change to CSS, and I couldn’t figure out why. I deleted the site (because was going to just deploy the dist file via drag and drop). Then, I needed to switch back to the site being built with parcel (in order to be able to access environmental variables).
So, I just restarted the site again, with a build. For the build command, I’m using npx parcel src/index.html
because that is what works on the local project.
It’s building the site fine, but won’t deploy.
Under “Deploys”, it says: Deploys for vibrant-shaw-d9bca5
Site deploy in progress [link]
BUILD LOG:
2:20:13 PM: Build ready to start
12:20:15 PM: build-image version: 122b31996ccaffd45d820a452d6227f8312110cc (focal)
12:20:15 PM: build-image tag: v4.5.3
12:20:15 PM: buildbot version: baeb904a18ff040c47ba9b74273238853fc0b7a7
12:20:15 PM: Fetching cached dependencies
12:20:15 PM: Failed to fetch cache, continuing with build
12:20:15 PM: Starting to prepare the repo for build
12:20:16 PM: No cached dependencies found. Cloning fresh repo
12:20:16 PM: git clone [git repo name]
12:20:18 PM: Preparing Git Reference refs/heads/main
12:20:19 PM: Parsing package.json dependencies
12:20:19 PM: Starting build script
12:20:19 PM: Installing dependencies
12:20:19 PM: Python version set to 2.7
12:20:20 PM: Downloading and installing node v16.14.0…
12:20:20 PM: Downloading [dist]
12:20:21 PM: Computing checksum with sha256sum
12:20:21 PM: Checksums matched!
12:20:24 PM: Now using node v16.14.0 (npm v8.3.1)
12:20:24 PM: Started restoring cached build plugins
12:20:24 PM: Finished restoring cached build plugins
12:20:24 PM: Attempting ruby version 2.7.2, read from environment
12:20:26 PM: Using ruby version 2.7.2
12:20:26 PM: Using PHP version 8.0
12:20:26 PM: Started restoring cached node modules
12:20:26 PM: Finished restoring cached node modules
12:20:27 PM: Installing NPM modules using NPM version 8.3.1
12:20:28 PM: npm WARN old lockfile
12:20:28 PM: npm WARN old lockfile The package-lock.json file was created with an old version of npm,
12:20:28 PM: npm WARN old lockfile so supplemental metadata must be fetched from the registry.
12:20:28 PM: npm WARN old lockfile
12:20:28 PM: npm WARN old lockfile This is a one-time fix-up, please be patient…
12:20:28 PM: npm WARN old lockfile
12:20:45 PM: added 211 packages, and audited 212 packages in 17s
12:20:45 PM: 74 packages are looking for funding
12:20:45 PM: run npm fund
for details
12:20:45 PM: found 0 vulnerabilities
12:20:45 PM: NPM modules installed
12:20:45 PM: Started restoring cached go cache
12:20:45 PM: Finished restoring cached go cache
12:20:45 PM: go version go1.16.5 linux/amd64
12:20:45 PM: go version go1.16.5 linux/amd64
12:20:45 PM: Installing missing commands
12:20:45 PM: Verify run directory
12:20:48 PM:
12:20:48 PM: ────────────────────────────────────────────────────────────────
12:20:48 PM: Netlify Build
12:20:48 PM: ────────────────────────────────────────────────────────────────
12:20:48 PM:
12:20:48 PM: ❯ Version
12:20:48 PM: @netlify/build 26.3.3
12:20:48 PM:
12:20:48 PM: ❯ Flags
12:20:48 PM: baseRelDir: true
12:20:48 PM: buildId: 6213c9cddd23a346b14dc3d1
12:20:48 PM: deployId: 6213c9cddd23a346b14dc3d3
12:20:48 PM:
12:20:48 PM: ❯ Current directory
12:20:48 PM: /opt/build/repo
12:20:48 PM:
12:20:48 PM: ❯ Config file
12:20:48 PM: No config file was defined: using default values.
12:20:48 PM:
12:20:48 PM: ❯ Context
12:20:48 PM: production
12:20:48 PM:
12:20:48 PM: ────────────────────────────────────────────────────────────────
12:20:48 PM: 1. Build command from Netlify app
12:20:48 PM: ────────────────────────────────────────────────────────────────
12:20:48 PM:
12:20:48 PM: $ npx parcel src/index.html
12:20:50 PM: Server running at http://localhost:1234
12:20:50 PM: Building…
12:20:51 PM: Bundling…
12:20:51 PM: Packaging & Optimizing…
12:20:52 PM: Built in 1.92s
** oh! Update. There are more logs, and then the deploy failed.**
12:50:13 PM: Build exceeded maximum allowed runtime
12:50:14 PM: Build failed.
12:50:14 PM: Error: Cannot find module ‘chalk’
12:50:14 PM: Require stack:
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/utils/lib/index.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/public/Config.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/utils.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/public/Environment.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/public/Asset.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/Parcel.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/index.js
12:50:14 PM: - /opt/build/repo/node_modules/parcel/lib/cli.js
12:50:14 PM: - /opt/build/repo/node_modules/parcel/lib/bin.js
12:50:14 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
12:50:14 PM: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
12:50:14 PM: at Module.require (node:internal/modules/cjs/loader:1005:19)
12:50:14 PM: at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
12:50:14 PM: at _chalk (/opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js:9:39)
12:50:14 PM: at /opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js:28:50
12:50:14 PM: at String.replace ()
12:50:14 PM: at markdownParser (/opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js:28:17)
12:50:14 PM: at Object.$f02d6a9d30f55938$export$2e2bcd8739ae039 (/opt/build/repo/node_modules/@parcel/utils/lib/index.js:32547:69)
12:50:14 PM: at $e2f5dd4f0f00d7a2$var$writeDiagnostic (/opt/build/repo/node_modules/@parcel/reporter-cli/lib/CLIReporter.js:7559:146) {
12:50:14 PM: code: ‘MODULE_NOT_FOUND’,
12:50:14 PM: requireStack: [
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/utils/lib/index.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/public/Config.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/utils.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/public/Environment.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/public/Asset.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/Parcel.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/index.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/parcel/lib/cli.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/parcel/lib/bin.js’
12:50:14 PM: ]
12:50:14 PM: }
12:50:14 PM: Error: Cannot find module ‘chalk’
12:50:14 PM: Require stack:
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/utils/lib/index.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/public/Config.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/utils.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/public/Environment.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/public/Asset.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/Parcel.js
12:50:14 PM: - /opt/build/repo/node_modules/@parcel/core/lib/index.js
12:50:14 PM: - /opt/build/repo/node_modules/parcel/lib/cli.js
12:50:14 PM: - /opt/build/repo/node_modules/parcel/lib/bin.js
12:50:14 PM: at Function.Module._resolveFilename (node:internal/modules/cjs/loader:933:15)
12:50:14 PM: at Function.Module._load (node:internal/modules/cjs/loader:778:27)
12:50:14 PM: at Module.require (node:internal/modules/cjs/loader:1005:19)
12:50:14 PM: at require (/opt/build/repo/node_modules/v8-compile-cache/v8-compile-cache.js:159:20)
12:50:14 PM: at _chalk (/opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js:9:39)
12:50:14 PM: at /opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js:28:50
12:50:14 PM: at String.replace ()
12:50:14 PM: at markdownParser (/opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js:28:17)
12:50:14 PM: at Object.$f02d6a9d30f55938$export$2e2bcd8739ae039 (/opt/build/repo/node_modules/@parcel/utils/lib/index.js:32547:69)
12:50:14 PM: at /opt/build/repo/node_modules/@parcel/reporter-dev-server/lib/ServerReporter.js:16334:59 {
12:50:14 PM: code: ‘MODULE_NOT_FOUND’,
12:50:14 PM: requireStack: [
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/markdown-ansi/lib/markdown-ansi.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/utils/lib/index.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/public/Config.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/utils.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/public/Environment.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/public/Asset.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/Parcel.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/@parcel/core/lib/index.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/parcel/lib/cli.js’,
12:50:14 PM: ‘/opt/build/repo/node_modules/parcel/lib/bin.js’
12:50:14 PM: ]
12:50:14 PM: }