sanity-io / sanity-template-gatsby-portfolio

A Gatsby portfolio site powered by Sanity for https://www.sanity.io/create
https://www.sanity.io/create/?template=sanity-io%2Fsanity-template-gatsby-portfolio
69 stars 18 forks source link

Netlify deploy failure #70

Closed AmmarArnt closed 2 years ago

AmmarArnt commented 2 years ago

I've had a netlify Production deployment that succeeded on May 31 2022. Since that date I haven't been introducing any code changes to that project. Today, I am having issues whatever I try to do - like even a simple PR with a one line of JS code changed fails.

The build log complains about the dependencies, whereas I haven't even touched my package.json and package-lock.json files. Below is the whole build log:

9:35:15 PM: Build ready to start
9:35:17 PM: build-image version: d2c6dbeac570350a387d832f64bc980dc964ad65 (focal)
9:35:17 PM: build-image tag: v4.8.0
9:35:17 PM: buildbot version: 4aaa27647e859c2d38cfbb25901ceae1e7f3eeae
9:35:17 PM: Fetching cached dependencies
9:35:18 PM: Finished downloading cache in 1.300811243s
9:35:18 PM: Starting to extract cache
9:35:22 PM: Finished extracting cache in 3.948919316s
9:35:22 PM: Finished fetching cache in 5.270549434s
9:35:22 PM: Starting to prepare the repo for build
9:35:23 PM: Preparing Git Reference pull/10/head
9:35:23 PM: Parsing package.json dependencies
9:35:24 PM: Different publish path detected, going to use the one specified in the Netlify configuration file: 'web/public' versus '/web/public' in the Netlify UI
9:35:24 PM: Starting build script
9:35:24 PM: Installing dependencies
9:35:24 PM: Python version set to 2.7
9:35:25 PM: Started restoring cached node version
9:35:26 PM: Finished restoring cached node version
9:35:26 PM: Downloading and installing node v16.15.1...
9:35:27 PM: Downloading https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz...
9:35:27 PM: Computing checksum with sha256sum
9:35:27 PM: Checksums matched!
9:35:30 PM: Now using node v16.15.1 (npm v8.11.0)
9:35:30 PM: Started restoring cached build plugins
9:35:30 PM: Finished restoring cached build plugins
9:35:30 PM: Attempting ruby version 2.7.2, read from environment
9:35:31 PM: Using ruby version 2.7.2
9:35:32 PM: Using PHP version 8.0
9:35:32 PM: No npm workspaces detected
9:35:32 PM: Started restoring cached node modules
9:35:32 PM: Finished restoring cached node modules
9:35:32 PM: Installing NPM modules using NPM version 8.11.0
9:35:33 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
9:35:33 PM: npm WARN config location in the cache, and they are managed by
9:35:33 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
9:35:33 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
9:35:33 PM: npm WARN config location in the cache, and they are managed by
9:35:33 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
9:35:34 PM: > sanity-gatsby-portfolio@0.0.0 postinstall
9:35:34 PM: > lerna bootstrap
9:35:35 PM: lerna notice cli v4.0.0
9:35:35 PM: lerna info ci enabled
9:35:35 PM: lerna info Bootstrapping 2 packages
9:35:35 PM: lerna info Installing external dependencies
9:35:45 PM: lerna ERR! npm ci exited 1 in 'sanity-gatsby-portfolio-web'
9:35:45 PM: lerna ERR! npm ci stderr:
9:35:45 PM: npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special
9:35:45 PM: npm WARN config location in the cache, and they are managed by
9:35:45 PM: Creating deploy upload records
9:35:45 PM: npm WARN config     [`cacache`](http://npm.im/cacache).
9:35:45 PM: npm WARN ERESOLVE overriding peer dependency
9:35:45 PM: npm WARN While resolving: @typescript-eslint/eslint-plugin@4.33.0
9:35:45 PM: npm WARN Found: eslint@8.8.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   dev eslint@"^8.8.0" from the root project
9:35:45 PM: npm WARN   11 more (@babel/eslint-parser, ...)
9:35:46 PM: Failed during stage 'building site': Build script returned non-zero exit code: 1 (https://ntl.fyi/exit-code-1)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Could not resolve dependency:
9:35:45 PM: npm WARN peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/eslint-plugin@4.33.0
9:35:45 PM: npm WARN node_modules/@typescript-eslint/eslint-plugin
9:35:45 PM: npm WARN   peer @typescript-eslint/eslint-plugin@"^4.0.0" from eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN   node_modules/eslint-config-react-app
9:35:45 PM: npm WARN   1 more (gatsby)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Conflicting peer dependency: eslint@7.32.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/eslint-plugin@4.33.0
9:35:45 PM: npm WARN   node_modules/@typescript-eslint/eslint-plugin
9:35:45 PM: npm WARN     peer @typescript-eslint/eslint-plugin@"^4.0.0" from eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN     node_modules/eslint-config-react-app
9:35:45 PM: npm WARN     1 more (gatsby)
9:35:45 PM: npm WARN ERESOLVE overriding peer dependency
9:35:45 PM: npm WARN While resolving: @typescript-eslint/parser@4.33.0
9:35:45 PM: npm WARN Found: eslint@8.8.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   dev eslint@"^8.8.0" from the root project
9:35:45 PM: npm WARN   11 more (@babel/eslint-parser, ...)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Could not resolve dependency:
9:35:45 PM: npm WARN peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/parser@4.33.0
9:35:45 PM: npm WARN node_modules/@typescript-eslint/parser
9:35:45 PM: npm WARN   peer @typescript-eslint/parser@"^4.0.0" from @typescript-eslint/eslint-plugin@4.33.0
9:35:45 PM: npm WARN   node_modules/@typescript-eslint/eslint-plugin
9:35:45 PM: npm WARN   2 more (eslint-config-react-app, gatsby)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Conflicting peer dependency: eslint@7.32.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   peer eslint@"^5.0.0 || ^6.0.0 || ^7.0.0" from @typescript-eslint/parser@4.33.0
9:35:45 PM: npm WARN   node_modules/@typescript-eslint/parser
9:35:45 PM: npm WARN     peer @typescript-eslint/parser@"^4.0.0" from @typescript-eslint/eslint-plugin@4.33.0
9:35:45 PM: npm WARN     node_modules/@typescript-eslint/eslint-plugin
9:35:45 PM: npm WARN     2 more (eslint-config-react-app, gatsby)
9:35:45 PM: npm WARN ERESOLVE overriding peer dependency
9:35:45 PM: npm WARN While resolving: eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN Found: eslint@8.8.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   dev eslint@"^8.8.0" from the root project
9:35:45 PM: npm WARN   11 more (@babel/eslint-parser, ...)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Could not resolve dependency:
9:35:45 PM: npm WARN peer eslint@"^7.5.0" from eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN node_modules/eslint-config-react-app
9:35:45 PM: npm WARN   eslint-config-react-app@"^6.0.0" from gatsby@4.6.0
9:35:45 PM: npm WARN   node_modules/gatsby
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Conflicting peer dependency: eslint@7.32.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   peer eslint@"^7.5.0" from eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN   node_modules/eslint-config-react-app
9:35:45 PM: npm WARN     eslint-config-react-app@"^6.0.0" from gatsby@4.6.0
9:35:45 PM: npm WARN     node_modules/gatsby
9:35:45 PM: npm WARN ERESOLVE overriding peer dependency
9:35:45 PM: npm WARN While resolving: eslint-plugin-flowtype@5.10.0
9:35:45 PM: npm WARN Found: eslint@8.8.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   dev eslint@"^8.8.0" from the root project
9:35:45 PM: npm WARN   11 more (@babel/eslint-parser, ...)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Could not resolve dependency:
9:35:45 PM: npm WARN peer eslint@"^7.1.0" from eslint-plugin-flowtype@5.10.0
9:35:45 PM: npm WARN node_modules/eslint-plugin-flowtype
9:35:45 PM: npm WARN   peer eslint-plugin-flowtype@"^5.2.0" from eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN   node_modules/eslint-config-react-app
9:35:45 PM: npm WARN   1 more (gatsby)
9:35:45 PM: npm WARN
9:35:45 PM: npm WARN Conflicting peer dependency: eslint@7.32.0
9:35:45 PM: npm WARN node_modules/eslint
9:35:45 PM: npm WARN   peer eslint@"^7.1.0" from eslint-plugin-flowtype@5.10.0
9:35:45 PM: npm WARN   node_modules/eslint-plugin-flowtype
9:35:45 PM: npm WARN     peer eslint-plugin-flowtype@"^5.2.0" from eslint-config-react-app@6.0.0
9:35:45 PM: npm WARN     node_modules/eslint-config-react-app
9:35:45 PM: npm WARN     1 more (gatsby)
9:35:45 PM: npm ERR! code EUSAGE
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! `npm ci` can only install packages when your package.json and package-lock.json or npm-shrinkwrap.json are in sync. Please update your lock file with `npm install` before continuing.
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! Invalid: lock file's type-fest@0.20.2 does not satisfy type-fest@0.13.1
npm ERR! Invalid: lock file's acorn@7.4.1 does not satisfy acorn@8.7.1
npm ERR! Missing: type-fest@0.20.2 from lock file
9:35:45 PM: npm ERR! Missing: babel-eslint@10.1.0 from lock file
9:35:45 PM: npm ERR! Missing: eslint-visitor-keys@1.3.0 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's prettier@1.19.1 does not satisfy prettier@2.6.2
npm ERR! Missing: acorn@7.4.1 from lock file
9:35:45 PM: npm ERR! Missing: gatsby-plugin-sharp@4.15.1 from lock file
9:35:45 PM: npm ERR! Missing: gatsby-source-filesystem@4.15.0 from lock file
9:35:45 PM: npm ERR! Missing: @gatsbyjs/potrace@2.2.0 from lock file
9:35:45 PM: npm ERR! Missing: async@3.2.3 from lock file
9:35:45 PM: npm ERR! Missing: debug@4.3.4 from lock file
9:35:45 PM: npm ERR! Missing: filenamify@4.3.0 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's fs-extra@10.0.0 does not satisfy fs-extra@10.1.0
npm ERR! Invalid: lock file's gatsby-core-utils@3.6.0 does not satisfy gatsby-core-utils@3.15.0
npm ERR! Invalid: lock file's gatsby-plugin-utils@3.0.0 does not satisfy gatsby-plugin-utils@3.9.1
npm ERR! Invalid: lock file's gatsby-telemetry@3.6.0 does not satisfy gatsby-telemetry@3.15.0
npm ERR! Missing: mini-svg-data-uri@1.4.4 from lock file
9:35:45 PM: npm ERR! Missing: probe-image-size@7.2.3 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's semver@7.3.5 does not satisfy semver@7.3.7
npm ERR! Missing: sharp@0.30.6 from lock file
9:35:45 PM: npm ERR! Missing: svgo@1.3.2 from lock file
9:35:45 PM: npm ERR! Missing: jimp@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: filename-reserved-regex@2.0.0 from lock file
9:35:45 PM: npm ERR! Missing: strip-outer@1.0.1 from lock file
9:35:45 PM: npm ERR! Missing: trim-repeated@1.0.0 from lock file
9:35:45 PM: npm ERR! Missing: import-from@4.0.0 from lock file
9:35:45 PM: npm ERR! Missing: lmdb@2.3.10 from lock file
9:35:45 PM: npm ERR! Missing: gatsby-sharp@0.9.0 from lock file
9:35:45 PM: npm ERR! Missing: graphql-compose@9.0.8 from lock file
9:35:45 PM: npm ERR! Missing: import-from@4.0.0 from lock file
9:35:45 PM: npm ERR! Missing: mime@3.0.0 from lock file
9:35:45 PM: npm ERR! Missing: got@9.6.0 from lock file
9:35:45 PM: npm ERR! Missing: pretty-bytes@5.6.0 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/custom@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugins@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/types@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/core@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/utils@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: any-base@1.1.0 from lock file
9:35:45 PM: npm ERR! Missing: exif-parser@0.1.12 from lock file
9:35:45 PM: npm ERR! Missing: file-type@9.0.0 from lock file
9:35:45 PM: npm ERR! Missing: load-bmfont@1.4.1 from lock file
9:35:45 PM: npm ERR! Missing: phin@2.9.3 from lock file
9:35:45 PM: npm ERR! Missing: pixelmatch@4.0.2 from lock file
9:35:45 PM: npm ERR! Missing: tinycolor2@1.4.2 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-blit@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-blur@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-circle@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-color@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-contain@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-resize@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-scale@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-cover@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-crop@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-displace@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-dither@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-fisheye@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-flip@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-rotate@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-gaussian@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-invert@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-mask@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-normalize@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-print@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-shadow@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/plugin-threshold@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: timm@1.7.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/bmp@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/gif@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/jpeg@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/png@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: @jimp/tiff@0.16.1 from lock file
9:35:45 PM: npm ERR! Missing: bmp-js@0.1.0 from lock file
9:35:45 PM: npm ERR! Missing: gifwrap@0.9.4 from lock file
9:35:45 PM: npm ERR! Missing: omggif@1.0.10 from lock file
9:35:45 PM: npm ERR! Missing: jpeg-js@0.4.2 from lock file
9:35:45 PM: npm ERR! Missing: pngjs@3.4.0 from lock file
9:35:45 PM: npm ERR! Missing: utif@2.0.1 from lock file
9:35:45 PM: npm ERR! Missing: image-q@4.0.0 from lock file
9:35:45 PM: npm ERR! Missing: @types/node@16.9.1 from lock file
9:35:45 PM: npm ERR! Missing: lmdb-darwin-arm64@2.3.10 from lock file
9:35:45 PM: npm ERR! Missing: lmdb-darwin-x64@2.3.10 from lock file
9:35:45 PM: npm ERR! Missing: lmdb-linux-arm@2.3.10 from lock file
9:35:45 PM: npm ERR! Missing: lmdb-linux-arm64@2.3.10 from lock file
9:35:45 PM: npm ERR! Missing: lmdb-linux-x64@2.3.10 from lock file
9:35:45 PM: npm ERR! Missing: lmdb-win32-x64@2.3.10 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's msgpackr@1.5.2 does not satisfy msgpackr@1.6.1
npm ERR! Missing: node-gyp-build-optional-packages@4.3.5 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's ordered-binary@1.2.3 does not satisfy ordered-binary@1.2.5
npm ERR! Invalid: lock file's weak-lru-cache@1.2.1 does not satisfy weak-lru-cache@1.2.2
npm ERR! Missing: buffer-equal@0.0.1 from lock file
9:35:45 PM: npm ERR! Missing: mime@1.6.0 from lock file
9:35:45 PM: npm ERR! Missing: parse-bmfont-ascii@1.0.6 from lock file
9:35:45 PM: npm ERR! Missing: parse-bmfont-binary@1.0.6 from lock file
9:35:45 PM: npm ERR! Missing: parse-bmfont-xml@1.1.4 from lock file
9:35:45 PM: npm ERR! Missing: xhr@2.6.0 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's msgpackr-extract@1.0.16 does not satisfy msgpackr-extract@2.0.2
npm ERR! Missing: @msgpackr-extract/msgpackr-extract-darwin-arm64@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: @msgpackr-extract/msgpackr-extract-darwin-x64@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: @msgpackr-extract/msgpackr-extract-linux-arm@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: @msgpackr-extract/msgpackr-extract-linux-arm64@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: @msgpackr-extract/msgpackr-extract-linux-x64@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: @msgpackr-extract/msgpackr-extract-win32-x64@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: node-gyp-build-optional-packages@5.0.2 from lock file
9:35:45 PM: npm ERR! Missing: xml-parse-from-string@1.0.1 from lock file
9:35:45 PM: npm ERR! Missing: xml2js@0.4.23 from lock file
9:35:45 PM: npm ERR! Missing: prettier@1.19.1 from lock file
9:35:45 PM: npm ERR! Missing: needle@2.9.1 from lock file
9:35:45 PM: npm ERR! Missing: stream-parser@0.3.1 from lock file
9:35:45 PM: npm ERR! Missing: sax@1.2.4 from lock file
9:35:45 PM: npm ERR! Missing: debug@2.6.9 from lock file
9:35:45 PM: npm ERR! Missing: pako@1.0.11 from lock file
9:35:45 PM: npm ERR! Missing: global@4.4.0 from lock file
9:35:45 PM: npm ERR! Missing: is-function@1.0.2 from lock file
9:35:45 PM: npm ERR! Missing: min-document@2.19.0 from lock file
9:35:45 PM: npm ERR! Missing: process@0.11.10 from lock file
9:35:45 PM: npm ERR! Missing: dom-walk@0.1.2 from lock file
9:35:45 PM: npm ERR! Missing: xmlbuilder@11.0.1 from lock file
9:35:45 PM: npm ERR! Missing: type-fest@0.20.2 from lock file
9:35:45 PM: npm ERR! Missing: type-fest@0.20.2 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's color@4.2.0 does not satisfy color@4.2.3
npm ERR! Missing: detect-libc@2.0.1 from lock file
9:35:45 PM: npm ERR! Missing: node-addon-api@5.0.0 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's prebuild-install@7.0.1 does not satisfy prebuild-install@7.1.0
npm ERR! Missing: chalk@2.4.2 from lock file
9:35:45 PM: npm ERR! Missing: coa@2.0.2 from lock file
9:35:45 PM: npm ERR! Missing: css-select@2.1.0 from lock file
9:35:45 PM: npm ERR! Missing: css-select-base-adapter@0.1.1 from lock file
9:35:45 PM: npm ERR! Missing: css-tree@1.0.0-alpha.37 from lock file
9:35:45 PM: npm ERR! Missing: unquote@1.1.1 from lock file
9:35:45 PM: npm ERR! Missing: util.promisify@1.0.1 from lock file
9:35:45 PM: npm ERR! Missing: @types/q@1.5.5 from lock file
9:35:45 PM: npm ERR! Missing: chalk@2.4.2 from lock file
9:35:45 PM: npm ERR! Missing: q@1.5.1 from lock file
9:35:45 PM: npm ERR! Missing: object.getownpropertydescriptors@2.1.4 from lock file
9:35:45 PM: npm ERR! Missing: array.prototype.reduce@1.0.4 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's define-properties@1.1.3 does not satisfy define-properties@1.1.4
npm ERR! Invalid: lock file's es-abstract@1.19.1 does not satisfy es-abstract@1.20.1
npm ERR! Missing: es-array-method-boxes-properly@1.0.0 from lock file
9:35:45 PM: npm ERR! Missing: has-property-descriptors@1.0.0 from lock file
9:35:45 PM: npm ERR! Missing: function.prototype.name@1.1.5 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's has-symbols@1.0.2 does not satisfy has-symbols@1.0.3
npm ERR! Invalid: lock file's is-shared-array-buffer@1.0.1 does not satisfy is-shared-array-buffer@1.0.2
npm ERR! Invalid: lock file's regexp.prototype.flags@1.4.1 does not satisfy regexp.prototype.flags@1.4.3
npm ERR! Invalid: lock file's string.prototype.trimend@1.0.4 does not satisfy string.prototype.trimend@1.0.5
npm ERR! Invalid: lock file's string.prototype.trimstart@1.0.4 does not satisfy string.prototype.trimstart@1.0.5
npm ERR! Invalid: lock file's unbox-primitive@1.0.1 does not satisfy unbox-primitive@1.0.2
npm ERR! Missing: functions-have-names@1.2.3 from lock file
9:35:45 PM: npm ERR! Invalid: lock file's has-bigints@1.0.1 does not satisfy has-bigints@1.0.2
npm ERR! Invalid: lock file's is-number-object@1.0.6 does not satisfy is-number-object@1.0.7
npm ERR! Missing: css-what@3.4.2 from lock file
9:35:45 PM: npm ERR! Missing: domutils@1.7.0 from lock file
9:35:45 PM: npm ERR! Missing: nth-check@1.0.2 from lock file
9:35:45 PM: npm ERR! Missing: mdn-data@2.0.4 from lock file
9:35:45 PM: npm ERR! Missing: source-map@0.6.1 from lock file
9:35:45 PM: npm ERR! Missing: dom-serializer@0.2.2 from lock file
9:35:45 PM: npm ERR! Missing: domelementtype@1.3.1 from lock file
9:35:45 PM: npm ERR! Missing: @types/sharp@0.30.2 from lock file
9:35:45 PM: npm ERR! Missing: sharp@0.30.6 from lock file
9:35:45 PM: npm ERR! Missing: detect-libc@2.0.1 from lock file
9:35:45 PM: npm ERR! Missing: node-addon-api@5.0.0 from lock file
9:35:45 PM: npm ERR! Missing: @sindresorhus/is@0.14.0 from lock file
9:35:45 PM: npm ERR! Missing: @szmarczak/http-timer@1.1.2 from lock file
9:35:45 PM: npm ERR! Missing: cacheable-request@6.1.0 from lock file
9:35:45 PM: npm ERR! Missing: decompress-response@3.3.0 from lock file
9:35:45 PM: npm ERR! Missing: get-stream@4.1.0 from lock file
9:35:45 PM: npm ERR! Missing: lowercase-keys@1.0.1 from lock file
9:35:45 PM: npm ERR! Missing: p-cancelable@1.1.0 from lock file
9:35:45 PM: npm ERR! Missing: defer-to-connect@1.1.3 from lock file
9:35:45 PM: npm ERR! Missing: keyv@3.1.0 from lock file
9:35:45 PM: npm ERR! Missing: normalize-url@4.5.1 from lock file
9:35:45 PM: npm ERR! Missing: responselike@1.0.2 from lock file
9:35:45 PM: npm ERR! Missing: json-buffer@3.0.0 from lock file
9:35:45 PM: npm ERR! Missing: lowercase-keys@1.0.1 from lock file
9:35:45 PM: npm ERR! Missing: type-fest@0.20.2 from lock file
9:35:45 PM: npm ERR! Missing: ms@2.0.0 from lock file
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! Clean install a project
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! Usage:
9:35:45 PM: npm ERR! npm ci
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! Options:
9:35:45 PM: npm ERR! [--no-audit] [--foreground-scripts] [--ignore-scripts]
9:35:45 PM: npm ERR! [--script-shell <script-shell>]
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! aliases: clean-install, ic, install-clean, isntall-clean
9:35:45 PM: npm ERR!
9:35:45 PM: npm ERR! Run "npm help ci" for more info
9:35:45 PM: npm ERR! A complete log of this run can be found in:
9:35:45 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-06-03T19_35_36_027Z-debug-0.log
9:35:45 PM: lerna ERR! npm ci exited 1 in 'sanity-gatsby-portfolio-web'
9:35:45 PM: lerna WARN complete Waiting for 1 child process to exit. CTRL-C to exit immediately.
9:35:45 PM: npm ERR! code 1
9:35:45 PM: npm ERR! path /opt/build/repo
9:35:45 PM: npm ERR! command failed
9:35:45 PM: npm ERR! command sh -c lerna bootstrap
9:35:45 PM: npm ERR! A complete log of this run can be found in:
9:35:45 PM: npm ERR!     /opt/buildhome/.npm/_logs/2022-06-03T19_35_33_541Z-debug-0.log
9:35:45 PM: Error during NPM install
9:35:45 PM: Build was terminated: Build script returned non-zero exit code: 1
9:35:46 PM: Failing build: Failed to build site
9:35:46 PM: Finished processing build request in 29.418043578s
AmmarArnt commented 2 years ago

Fixed it by doing the following:

  1. Upgrade lerna to v5.0.0
  2. Upgrade Sanity in studio from v2.22 to v.2.30.1
  3. Upgrade eslint in web from v8.8.0 to v8.17.0
  4. Replaced npm with yarn:
    • Delete all package-lock.json files
    • Introduce yarn.lock files
    • Replace all scripts from npm to yarn
    • Add "npmClient": "yarn" in lerna.json