ng update @angular/cli @angular/core or npx @angular/cli@13 update @angular/core@13...

Discussão em 'Angular' iniciado por Ravikumar, Dezembro 5, 2024.

  1. Ravikumar

    Ravikumar Guest

    I am trying to upgrade my angular cli and angular core from 12 to 13, but looks like there are peer dependency issues. did any one faced this issue ?


    npx @angular/cli@13 update @angular/core@13 @angular/cli@13
    ​

    [![npm ERR! Could not resolve dependency:
    npm ERR! dev @angular/compiler-cli@"~13.0.0" from the root project
    npm ERR!
    npm ERR! Conflicting peer dependency: typescript@4.4.4
    npm ERR! node_modules/typescript
    npm ERR! peer typescript@">=4.4.2 <4.5" from @angular/compiler-cli@13.0.0
    npm ERR! node_modules/@angular/compiler-cli
    npm ERR! dev @angular/compiler-cli@"~13.0.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.][1]][1]



    [​IMG]

    Continue reading...

Compartilhe esta Página