Good afternoon, a problem with the deployment of the site. Added a couple of plugins and the problem is only on the hosting. On the local PC, everything is fine. As it is written in the logs added
legacy-peer-deps=true in .npmrc , but the problem remained
|17:30:17.063|Cloning repository...| |---|---| |17:30:18.341|From https://github.com/snagovskiy/bcycle| |17:30:18.342| * branch 09e4280ffe343c0ef36f135a6018ecbc47418019 -> FETCH_HEAD| |17:30:18.342|| |17:30:18.447|HEAD is now at 09e4280 force| |17:30:18.448|| |17:30:18.546|| |17:30:18.579|Success: Finished cloning repository files| |17:30:19.366|Detected the following tools from environment: [email protected], [email protected]| |17:30:19.367|Installing nodejs 20.5.1| |17:30:19.452|nodejs 20.5.1 is already installed| |17:30:20.031|Installing project dependencies: npm clean-install --progress=false| |17:30:22.879|npm ERR! code ERESOLVE| |17:30:22.882|npm ERR! ERESOLVE could not resolve| |17:30:22.882|npm ERR! | |17:30:22.883|npm ERR! While resolving: [email protected]| |17:30:22.883|npm ERR! Found: [email protected]| |17:30:22.883|npm ERR! node_modules/gatsby| |17:30:22.883|npm ERR! [email protected] from the root project| |17:30:22.884|npm ERR! peer gatsby@^5.0.0-next from [email protected]| |17:30:22.884|npm ERR! node_modules/babel-plugin-remove-graphql-queries| |17:30:22.884|npm ERR! babel-plugin-remove-graphql-queries@^5.11.0 from [email protected]| |17:30:22.884|npm ERR! babel-plugin-remove-graphql-queries@^5.11.0 from [email protected]| |17:30:22.884|npm ERR! node_modules/gatsby-plugin-image| |17:30:22.884|npm ERR! [email protected] from the root project| |17:30:22.884|npm ERR! 1 more (gatsby-plugin-typescript)| |17:30:22.885|npm ERR! 23 more (gatsby-plugin-canonical-urls, gatsby-plugin-emotion, ...)| |17:30:22.885|npm ERR! | |17:30:22.885|npm ERR! Could not resolve dependency:| |17:30:22.885|npm ERR! peer gatsby@^2.1.27 from [email protected]| |17:30:22.885|npm ERR! node_modules/gatsby-plugin-yandex-metrica| |17:30:22.885|npm ERR! gatsby-plugin-yandex-metrica@^0.1.3-check from the root project| |17:30:22.886|npm ERR! | |17:30:22.886|npm ERR! Conflicting peer dependency: [email protected]| |17:30:22.886|npm ERR! node_modules/gatsby| |17:30:22.886|npm ERR! peer gatsby@^2.1.27 from [email protected]| |17:30:22.886|npm ERR! node_modules/gatsby-plugin-yandex-metrica| |17:30:22.886|npm ERR! gatsby-plugin-yandex-metrica@^0.1.3-check from the root project| |17:30:22.887|npm ERR! | |17:30:22.887|npm ERR! Fix the upstream dependency conflict, or retry| |17:30:22.887|npm ERR! this command with --force or --legacy-peer-deps| |17:30:22.887|npm ERR! to accept an incorrect (and potentially broken) dependency resolution.| |17:30:22.887|npm ERR! | |17:30:22.887|npm ERR! | |17:30:22.887|npm ERR! For a full report see:| |17:30:22.888|npm ERR! /opt/buildhome/.npm/_logs/2023-10-20T14_30_20_920Z-eresolve-report.txt| |17:30:22.888|| |17:30:22.888|npm ERR! A complete log of this run can be found in: /opt/buildhome/.npm/_logs/2023-10-20T14_30_20_920Z-debug-0.log| |17:30:22.904|Error: Exit with error code: 1| |17:30:22.905| at ChildProcess.<anonymous> (/snapshot/dist/run-build.js)| |17:30:22.905| at Object.onceWrapper (node:events:652:26)| |17:30:22.905| at ChildProcess.emit (node:events:537:28)| |17:30:22.905| at ChildProcess._handle.onexit (node:internal/child_process:291:12)| |17:30:22.915|Failed: build command exited with code: 1| |17:30:23.843|Failed: error occurred while running build command|
I’m a newbie. What could be the problem?