Error while using npm install in an angular 13 project

Discussão em 'Angular' iniciado por El Mehdi Tatbi, Dezembro 5, 2024.

  1. i got stuck in this problem that occurred when i used npm install in the project directory. How can i resolve it ?

    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE unable to resolve dependency tree
    npm ERR!
    npm ERR! While resolving: dss-admin-dashboard-ui@1.0.0-SNAPSHOT
    npm ERR! Found: @angular/core@13.3.12
    npm ERR! node_modules/@angular/core
    npm ERR! @angular/core@"\~13.3.0" from the root project
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer @angular/core@"^4.0.0" from ngx-barcode@0.3.0
    npm ERR! node_modules/ngx-barcode
    npm ERR! ngx-barcode@"^0.3.0" from the root project
    npm ERR!
    npm ERR! Fix the upstream dependency conflict, or retry
    npm ERR! this command with --force, or --legacy-peer-deps
    npm ERR! to accept an incorrect (and potentially broken) dependency resolution.


    I tried to resolve the problem by installing another version of ngx-barcide but it didn't work.

    Continue reading...

Compartilhe esta Página