1. Anuncie Aqui ! Entre em contato fdantas@4each.com.br

Node upgrade from V16 to V22

Discussão em 'Angular' iniciado por Subburaj, Outubro 16, 2024 às 08:22.

  1. Subburaj

    Subburaj Guest

    Currently I am usimg node version 16 and while trying to upgrade node version 22, getting below error related to angular packages

    npm error code ERESOLVE
    npm error ERESOLVE could not resolve
    npm error
    npm error While resolving: @uirouter/angular@9.1.0
    npm error Found: @angular/common@14.3.0
    npm error node_modules/@angular/common
    npm error dev @angular/common@"14.3.0" from the root project
    npm error peer @angular/common@"^14.0.0 || ^15.0.0" from @angular/cdk@14.2.7
    npm error node_modules/@angular/cdk
    npm error dev @angular/cdk@"14.2.7" from the root project
    npm error peer @angular/cdk@"14.2.7" from @angular/material@14.2.7
    npm error node_modules/@angular/material
    npm error dev @angular/material@"14.2.7" from the root project
    npm error 5 more (@angular/forms, @angular/material, ...)
    npm error
    npm error Could not resolve dependency:
    npm error peer @angular/common@"^12.0.0 || ^13.0.0" from @uirouter/angular@9.1.0
    npm error node_modules/@uirouter/angular
    npm error peer @uirouter/angular@"^9.1.0" from @uirouter/angular-hybrid@13.0.0
    npm error node_modules/@uirouter/angular-hybrid
    npm error dev @uirouter/angular-hybrid@"13.0.0" from the root project
    npm error
    npm error Conflicting peer dependency: @angular/common@13.4.0
    npm error node_modules/@angular/common
    npm error peer @angular/common@"^12.0.0 || ^13.0.0" from @uirouter/angular@9.1.0
    npm error node_modules/@uirouter/angular
    npm error peer @uirouter/angular@"^9.1.0" from @uirouter/angular-hybrid@13.0.0
    npm error node_modules/@uirouter/angular-hybrid
    npm error dev @uirouter/angular-hybrid@"13.0.0" from the root project


    Tried

    npm cache clear --force npm install --no-optional

    Nothing works. Please share your ideas

    Continue reading...

Compartilhe esta Página