akveo / ngx-admin

Customizable admin dashboard template based on Angular 10+
https://akveo.github.io/ngx-admin/
MIT License
25.26k stars 7.96k forks source link

I am facing a problem when write command ```npm install``` #5930

Closed sayedbd021 closed 2 years ago

sayedbd021 commented 2 years ago

issue showing

D:\Outsourching\local\2022\ngx-admin>npm i
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: ngx-admin@8.0.0
npm ERR! Found: @angular/cdk@12.1.0
npm ERR! node_modules/@angular/cdk
npm ERR!   @angular/cdk@"12.1.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer @angular/cdk@"12.2.13" from @angular/material@12.2.13
npm ERR! node_modules/@angular/material
npm ERR!   @angular/material@"^12.1.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.
npm ERR!
npm ERR! See C:\Users\***\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!     C:\Users\***\AppData\Local\npm-cache\_logs\2022-04-07T05_19_02_693Z-debug-0.log

my Angular version

`


/ \   _ __   __ _ _   _| | __ _ _ __     / ___| |   |_ _|

/ △ \ | ' \ / | | | | |/ _ | '| | | | | | | / _ | | | | (| | || | | (| | | | || |_ | | // __| ||_, |_,||_,|| __|__|| |/

Angular CLI: 13.3.2 Node: 14.15.1 Package Manager: npm 8.6.0 OS: win32 x64

Angular: ... animations, cdk, common, compiler, compiler-cli, core, forms ... google-maps, language-service, material, platform-browser ... platform-browser-dynamic, router

Package Version

@angular-devkit/architect 0.1303.2 (cli-only) @angular-devkit/build-angular @angular-devkit/core 13.3.2 (cli-only) @angular-devkit/schematics 13.3.2 (cli-only) @angular/cli 13.3.2 (cli-only) @schematics/angular 13.3.2 (cli-only) rxjs 6.6.7 (cli-only) typescript 4.6.3 (cli-only)`

and others

node version: v14.15.1 npm version: 8.6.0

how can I solve it any idea, note: am already applied

sam0324sam commented 2 years ago

I have same error with win10

Prefix1802 commented 2 years ago

5921

I am going to do a fresh win10 install(VMWare) with new node latest LTS. I will let you know if i have the same problems.

Also, update your node to the latest LTS please?

https://nodejs.org/en/

Let us know what happens.

And does npm start work?

MattRvt commented 2 years ago

Why are you using different versions than the one provided in the package.json ? Try with the #5900 package.json

hjelliott commented 2 years ago

I have the same error with: Mac OS 12.3.1 Node: V16.15.0 NPM: V8.5.5 GIT: 2.23

howard@MacBook-M1-Pro ngx-admin % npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: ngx-admin@8.0.0 npm ERR! Found: @angular/animations@12.2.16 npm ERR! node_modules/@angular/animations npm ERR! @angular/animations@"^12.1.0" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer @angular/animations@"~9.1.1" from @swimlane/ngx-charts@14.0.0 npm ERR! node_modules/@swimlane/ngx-charts npm ERR! @swimlane/ngx-charts@"^14.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. npm ERR! npm ERR! See /Users/howard/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/howard/.npm/_logs/2022-05-02T07_17_53_283Z-debug-0.log

Any ideas on how to resolve?

Prefix1802 commented 2 years ago

https://stackoverflow.com/a/64615583

azaiko-akveo commented 2 years ago

Try to downgrade npm to version 6 npm i -g npm@6

tavo20 commented 2 years ago

Try with node 16.14.2

Prefix1802 commented 2 years ago

Not solved yet. Merge is generating issues.

vaibhavkumar-sf commented 2 years ago

Not working with Node-16

image
vaibhavkumar-sf commented 2 years ago

Fixed by this solution : https://github.com/akveo/ngx-admin/issues/5893

image
sayedbs commented 2 years ago

this issue fix when I back npm version 6 issue fix done

sayedbd021 commented 2 years ago

sayedbs

yes going to close this