Suddenly cannot deploy Github page

Hi all,

Although I do have a bit of experience with Node, npm, React, etc, I still struggle with the Cloudflare way of doing things.

I have a website that is stored on GitHub and deployed via Cloudflare Pages. It’s mostly static content, and serves us well. However, this was all set up by a more experienced person who is no longer with us today. Yesterday, I tried making some small changes and corrections to the content (text) on the site. Nothing major. However, as soon as it tried to deploy, it failed with the following errors:

|2022-07-06T02:17:08.895087Z|Cloning repository...|
|---|---|
|2022-07-06T02:17:13.913163Z|From https://github.com/MyUserName/ph-front-page|
|2022-07-06T02:17:13.913749Z| * branch            6d08616dc107935bf408ff10c0c6f7e227461bce -> FETCH_HEAD|
|2022-07-06T02:17:13.913968Z||
|2022-07-06T02:17:15.27751Z|HEAD is now at 6d08616 Update RP Rules Overhaul|
|2022-07-06T02:17:15.278081Z||
|2022-07-06T02:17:15.426019Z||
|2022-07-06T02:17:15.451402Z|Success: Finished cloning repository files|
|2022-07-06T02:17:16.144361Z|Installing dependencies|
|2022-07-06T02:17:16.155491Z|Python version set to 2.7|
|2022-07-06T02:17:19.273674Z|Downloading and installing node v16.15.1...|
|2022-07-06T02:17:19.653428Z|Downloading https://nodejs.org/dist/v16.15.1/node-v16.15.1-linux-x64.tar.xz...|
|2022-07-06T02:17:20.310544Z|Computing checksum with sha256sum|
|2022-07-06T02:17:20.437994Z|Checksums matched!|
|2022-07-06T02:17:24.536849Z|Now using node v16.15.1 (npm v8.11.0)|
|2022-07-06T02:17:24.903298Z|Started restoring cached build plugins|
|2022-07-06T02:17:24.91544Z|Finished restoring cached build plugins|
|2022-07-06T02:17:25.364001Z|Attempting ruby version 2.7.1, read from environment|
|2022-07-06T02:17:28.718872Z|Using ruby version 2.7.1|
|2022-07-06T02:17:29.06918Z|Using PHP version 5.6|
|2022-07-06T02:17:29.215554Z|5.2 is already installed.|
|2022-07-06T02:17:29.241464Z|Using Swift version 5.2|
|2022-07-06T02:17:29.24205Z|Started restoring cached node modules|
|2022-07-06T02:17:29.259895Z|Finished restoring cached node modules|
|2022-07-06T02:17:29.743211Z|Installing NPM modules using NPM version 8.11.0|
|2022-07-06T02:17:30.140892Z|npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special|
|2022-07-06T02:17:30.141224Z|npm WARN config location in the cache, and they are managed by|
|2022-07-06T02:17:30.141388Z|npm WARN config     [`cacache`](http://npm.im/cacache).|
|2022-07-06T02:17:30.536143Z|npm WARN config tmp This setting is no longer used.  npm stores temporary files in a special|
|2022-07-06T02:17:30.536505Z|npm WARN config location in the cache, and they are managed by|
|2022-07-06T02:17:30.536771Z|npm WARN config     [`cacache`](http://npm.im/cacache).|
|2022-07-06T02:17:32.696665Z|npm ERR! code ERESOLVE|
|2022-07-06T02:17:32.700072Z|npm ERR! ERESOLVE could not resolve|
|2022-07-06T02:17:32.700322Z|npm ERR! |
|2022-07-06T02:17:32.700473Z|npm ERR! While resolving: @sentry/[email protected]|
|2022-07-06T02:17:32.700594Z|npm ERR! Found: [email protected]|
|2022-07-06T02:17:32.700812Z|npm ERR! node_modules/gatsby|
|2022-07-06T02:17:32.700933Z|npm ERR!   [email protected]^4.0.2 from the root project|
|2022-07-06T02:17:32.701052Z|npm ERR!   peer [email protected]^4.0.0-next from [email protected]|
|2022-07-06T02:17:32.701167Z|npm ERR!   node_modules/babel-plugin-remove-graphql-queries|
|2022-07-06T02:17:32.701276Z|npm ERR!     [email protected]^4.0.0 from [email protected]|
|2022-07-06T02:17:32.701388Z|npm ERR!     [email protected]^4.0.0 from [email protected]|
|2022-07-06T02:17:32.701509Z|npm ERR!     node_modules/gatsby-plugin-image|
|2022-07-06T02:17:32.701619Z|npm ERR!       [email protected]^2.0.0 from the root project|
|2022-07-06T02:17:32.701839Z|npm ERR!     1 more (gatsby-plugin-typescript)|
|2022-07-06T02:17:32.702118Z|npm ERR!   15 more (gatsby-omni-font-loader, ...)|
|2022-07-06T02:17:32.702289Z|npm ERR! |
|2022-07-06T02:17:32.702428Z|npm ERR! Could not resolve dependency:|
|2022-07-06T02:17:32.702565Z|npm ERR! peer [email protected]^2.0.0 || ^3.0.0 from @sentry/[email protected]|
|2022-07-06T02:17:32.702712Z|npm ERR! node_modules/@sentry/gatsby|
|2022-07-06T02:17:32.702881Z|npm ERR!   @sentry/[email protected]^6.13.3 from the root project|
|2022-07-06T02:17:32.703058Z|npm ERR! |
|2022-07-06T02:17:32.703291Z|npm ERR! Conflicting peer dependency: [email protected]|
|2022-07-06T02:17:32.703474Z|npm ERR! node_modules/gatsby|
|2022-07-06T02:17:32.703701Z|npm ERR!   peer [email protected]^2.0.0 || ^3.0.0 from @sentry/[email protected]|
|2022-07-06T02:17:32.703867Z|npm ERR!   node_modules/@sentry/gatsby|
|2022-07-06T02:17:32.70408Z|npm ERR!     @sentry/[email protected]^6.13.3 from the root project|
|2022-07-06T02:17:32.704305Z|npm ERR! |
|2022-07-06T02:17:32.704437Z|npm ERR! Fix the upstream dependency conflict, or retry|
|2022-07-06T02:17:32.704553Z|npm ERR! this command with --force, or --legacy-peer-deps|
|2022-07-06T02:17:32.70466Z|npm ERR! to accept an incorrect (and potentially broken) dependency resolution.|
|2022-07-06T02:17:32.704799Z|npm ERR! |
|2022-07-06T02:17:32.704914Z|npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.|
|2022-07-06T02:17:32.705031Z||
|2022-07-06T02:17:32.705145Z|npm ERR! A complete log of this run can be found in:|
|2022-07-06T02:17:32.705318Z|npm ERR!     /opt/buildhome/.npm/_logs/2022-07-06T02_17_30_503Z-debug-0.log|
|2022-07-06T02:17:32.712677Z|Error during NPM install|
|2022-07-06T02:17:32.716718Z|Failed: build command exited with code: 1|
|2022-07-06T02:17:43.866186Z|Failed: an internal error occurred|

I understand that if I were to perform an npm install -force, this could probably be sorted out, but I’m uncertain on how I’d go about doing that via Cloudflare, or an alternative way to fix it, given this Cloudflare Pages + Github configuration being used.

Any suggestions or ideas would be greatly appreciated.
Thanks.

One or more of your NPM modules isn’t compatible. If you try to run npm install locally, it won’t work. You need to get the modules fixed, then push that, and it will build.

Thanks. I will try sorting it out locally.