Estou com problemas para fazer deploy por conflito de alguma coisa

estou tentando fazer um deploy do seguinte projeto GitHub - codedthemes/berry-free-angular-admin-template: Free Angular admin template for Berry design e encontro o seguinte erro


por favor preciso de ajuda!!!
erro copiado caso a imagem esteja com problema de visibilidade:
1:37:25 AM: build-image version: 596993885fcc8df0dd6d507c57c5c9cb7c3a8576 (focal)

1:37:25 AM: buildbot version: 163fe70070e26a02d64141bf435d02320d25b8c1

1:37:25 AM: Fetching cached dependencies

1:37:25 AM: Failed to fetch cache, continuing with build

1:37:25 AM: Starting to prepare the repo for build

1:37:26 AM: No cached dependencies found. Cloning fresh repo

1:37:26 AM: git clone --filter=blob:none https://github.com/vinicius123131/jm-api-front

1:37:26 AM: Preparing Git Reference refs/heads/main

1:37:27 AM: Parsing package.json dependencies

1:37:28 AM: Starting to install dependencies

1:37:28 AM: Python version set to 3.8

1:37:28 AM: Attempting Ruby version 2.7.2, read from environment

1:37:29 AM: Using Ruby version 2.7.2

1:37:29 AM: Started restoring cached go cache

1:37:29 AM: Finished restoring cached go cache

1:37:29 AM: Installing Go version 1.19.5 (requested 1.19.5)

1:37:34 AM: go version go1.19.5 linux/amd64

1:37:34 AM: Using PHP version 8.0

1:37:35 AM: v16.20.0 is already installed.

1:37:36 AM: Now using node v16.20.0 (npm v8.19.4)

1:37:36 AM: Enabling Node.js Corepack

1:37:36 AM: Started restoring cached build plugins

1:37:36 AM: Finished restoring cached build plugins

1:37:36 AM: Started restoring cached corepack dependencies

1:37:36 AM: Finished restoring cached corepack dependencies

1:37:36 AM: No npm workspaces detected

1:37:36 AM: Started restoring cached node modules

1:37:36 AM: Finished restoring cached node modules

1:37:36 AM: Installing npm packages using npm version 8.19.4

1:37:40 AM: npm ERR! code ERESOLVE

1:37:40 AM: npm ERR! ERESOLVE could not resolve

1:37:40 AM: npm ERR!

1:37:40 AM: npm ERR! While resolving: @ng-bootstrap/ng-bootstrap@13.1.1

1:37:40 AM: npm ERR! Found: @angular/common@15.0.0

1:37:40 AM: Failed during stage ‘Install dependencies’: dependency_installation script returned non-zero exit code: 1

1:37:40 AM: npm ERR! node_modules/@angular/common

1:37:40 AM: npm ERR! @angular/common@“^15.0.0” from the root project

1:37:40 AM: npm ERR! peer @angular/common@“^15.0.0 || ^16.0.0” from @angular/cdk@15.0.0

1:37:40 AM: npm ERR! node_modules/@angular/cdk

1:37:40 AM: npm ERR! @angular/cdk@“^15.0.0” from the root project

1:37:40 AM: npm ERR! peer @angular/cdk@“>=14.1.0” from ngx-scrollbar@10.0.1

1:37:40 AM: npm ERR! node_modules/ngx-scrollbar

1:37:40 AM: npm ERR! ngx-scrollbar@“^10.0.1” from the root project

1:37:40 AM: npm ERR! 6 more (@angular/forms, @angular/platform-browser, …)

1:37:40 AM: npm ERR!

1:37:40 AM: npm ERR! Could not resolve dependency:

1:37:40 AM: npm ERR! peer @angular/common@“^14.1.0” from @ng-bootstrap/ng-bootstrap@13.1.1

1:37:40 AM: npm ERR! node_modules/@ng-bootstrap/ng-bootstrap

1:37:40 AM: npm ERR! @ng-bootstrap/ng-bootstrap@“^13.1.1” from the root project

1:37:40 AM: npm ERR!

1:37:40 AM: npm ERR! Conflicting peer dependency: @angular/common@14.3.0

1:37:40 AM: npm ERR! node_modules/@angular/common

1:37:40 AM: npm ERR! peer @angular/common@“^14.1.0” from @ng-bootstrap/ng-bootstrap@13.1.1

1:37:40 AM: npm ERR! node_modules/@ng-bootstrap/ng-bootstrap

1:37:40 AM: npm ERR! @ng-bootstrap/ng-bootstrap@“^13.1.1” from the root project

1:37:40 AM: npm ERR!

1:37:40 AM: npm ERR! Fix the upstream dependency conflict, or retry

1:37:40 AM: npm ERR! this command with --force, or --legacy-peer-deps

1:37:40 AM: npm ERR! to accept an incorrect (and potentially broken) dependency resolution.

1:37:40 AM: npm ERR!

1:37:40 AM: npm ERR! See /opt/buildhome/.npm/eresolve-report.txt for a full report.

1:37:40 AM: npm ERR! A complete log of this run can be found in:

1:37:40 AM: npm ERR! /opt/buildhome/.npm/_logs/2023-04-08T04_37_36_644Z-debug-0.log

1:37:40 AM: Error during npm install

1:37:40 AM: Build was terminated: dependency_installation script returned non-zero exit code: 1

1:37:40 AM: Failing build: Failed to install dependencies

1:37:40 AM: Finished processing build request in 15.066s

Searching these very forums for ERESOLVE yields many results. The first in the list is: React Project causing npm ERR! code ERESOLVE while netlify deployment from github, where as build successfully on my localhost which is marked as solved using this answer

Can you try following that solution. If you still run into issues, please reply here.

Olá, já tinha tentado aplicar essa solução desse tópico que você indicou e ela não funcinou para mim. tem algo a mais que posso fazer? o erro ainda continua o mesmo…

@vinicius123131 what errors do you get after adding the npm flag? Can you show an example build log and how you set the variable up?

Thanks

  1. oie amigo, posso sim, vou fazer isso e mostro para você código do projeto angular (git clone
    GitHub - codedthemes/berry-free-angular-admin-template: Free Angular admin template for Berry design)
  2. forma como estava tentando resolver o problema
    Uploading: image.png…
  3. erros que acontecem depois da tentativa de solução
    Uploading: image.png(1)…
  4. desde já agradeço pela ajuda e pela atenção, estou começando agora e gostaria de praticar com modelos já pronto para poder conseguir fazer coisas mais elaboradas e funcionais. meu forte é backend.

You can try to uncomit the package-lock.json from your repo, the try a clean cached build on Netlify.

This is most likely a broken upstream dependency issue.

opa cara, troquei aqui e estou fazendo com outro código, mesmo assim ainda está dando erro: erro do log

.
eu configurei o arquivo netlify.toml assim, mesmo assim ele da erro, antes ele tava dando um erro lá no final, só que ai passou a só ficar ai… acho que antes só tava dando pq tava colocando --prod

desde de já muito obrigado pela atenção

só podia colocar uma imagem por post, a imagem do arquivo de netlify.toml é essa aqui

The netlify.toml is incorrect. It should be:

[build]
  [build.environment]
    NPM_FLAGS = "--force"