Forum Discussion

Aarthi0789's avatar
Aarthi0789
New Member
2 years ago

Cannot install npm i powerbi-client-angular in Angular 10 and Node 16v

Hi Team,

 

My project is running on Angular 10.0.3v and Node 16.16v , when I am trying in install power Bi client angular or power Bi client facing challenges due to version compatabilities in application. Even I tried to install lowest version having compling issue, either we need to upgrade Node Js or Angular >=12v to make it work however I am afraid we might face deprecation or dependency , errors if we upgrade.

Can anyone guide to how approach better solution to integrate power BI in my application.

Thank you,
A S Aarthi

4 Replies

  • Anonymous's avatar
    Anonymous
    Not applicable

    Hi Aarthi0789,

    The angular version requires should be related to npm library, perhaps you can use the old version which support angular v10 version. You can find it on the version tag of npm manager:

    powerbi-client-angular - npm (npmjs.com)
    Regards,

    Xiaoxin Sheng

  • Hi Xiaoxin Sheng,

    Thank you for the reply, i have tried installing npm i [email protected] also from other npm npm i powerbi-client packages in lower versions yet i get this following errors.

    config global `--global`, `--local` are deprecated. Use `--location=global` instead.
    npm ERR! code ERESOLVE
    npm ERR! ERESOLVE could not resolve
    npm ERR!
    npm ERR! While resolving: [email protected]
    npm ERR! Found: @angular/[email protected]
    npm ERR! node_modules/@angular/common
    npm ERR!   peer @angular/common@"10.0.14" from @angular/[email protected]
    npm ERR!   node_modules/@angular/forms
    npm ERR!     @angular/forms@"~10.0.4" from the root project
    npm ERR!   peer @angular/common@"10.0.14" from @angular/[email protected]
    npm ERR!   node_modules/@angular/platform-browser
    npm ERR!     peer @angular/platform-browser@"10.0.14" from @angular/[email protected]
    npm ERR!     node_modules/@angular/forms
    npm ERR!       @angular/forms@"~10.0.4" from the root project
    npm ERR!     peer @angular/platform-browser@"10.0.14" from @angular/[email protected]
    npm ERR!     node_modules/@angular/platform-browser-dynamic
    npm ERR!       @angular/platform-browser-dynamic@"~10.0.4" from the root project
    npm ERR!     3 more (@angular/router, ngx-image-cropper, the root project)
    npm ERR!   5 more (@angular/platform-browser-dynamic, @angular/router, ...)
    npm ERR!
    npm ERR! Could not resolve dependency:
    npm ERR! peer @angular/common@"^12.0.3" from [email protected]
    npm ERR! node_modules/angular-google-tag-manager
    npm ERR!   angular-google-tag-manager@"^1.4.2" from the root project
    npm ERR!
    npm ERR! Conflicting peer dependency: @angular/[email protected]
    npm ERR! node_modules/@angular/common
    npm ERR!   peer @angular/common@"^12.0.3" from [email protected]
    npm ERR!   node_modules/angular-google-tag-manager
    npm ERR!     angular-google-tag-manager@"^1.4.2" 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.
    npm ERR!
    npm ERR! See C:\Users\Ammagari.Sathyanand\AppData\Local\npm-cache\eresolve-report.txt for a full report.

     

    npm ERR! A complete log of this run can be found in:
    npm ERR!

     

    • Anonymous's avatar
      Anonymous
      Not applicable

      HI Aarthi0789,

      If the old version also not able to work, you may need to try to contact the npm package support team to confirm if any suggestions about low versions support or try to use a higher version.

      Regards,

      Xiaoxin Sheng

      • Aarthi0789's avatar
        Aarthi0789
        New Member

        Hi Xiaoxin, Tried to reach npm support team however it redirects to microsoft community team unfortunately.