creativetimofficial / ct-paper-dashboard-pro-angular

8 stars 10 forks source link

[Bug] NPM Install with Latest Version of Angular and Angular CLI #41

Open jstevenson81 opened 3 years ago

jstevenson81 commented 3 years ago

Version

1.4.0

Reproduction link

https://github.com/jstevenson81/cardio-view/tree/feature/SRC-2-add-logo-to-template-and-set-up-de

Operating System

macOS Big Sur

Device

Apple M1 MacBook Pro

Browser & Version

Google Chrome, Latest

Steps to reproduce

Copy code to local repo from the .zip file open terminal npm i -g @angular/cli npm i

What is expected?

Dependencies installed

What is actually happening?

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: paper-dashboard-pro-angular@1.4.0 npm ERR! Found: zone.js@0.11.1 npm ERR! node_modules/zone.js npm ERR! zone.js@"0.11.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer zone.js@"~0.10.3" from @angular/core@10.1.5 npm ERR! node_modules/@angular/core npm ERR! @angular/core@"10.1.5" from the root project npm ERR! peer @angular/core@"10.1.5" from @angular/common@10.1.5 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"10.1.5" 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/jonathanstevenson/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/jonathanstevenson/.npm/_logs/2021-05-30T01_53_29_602Z-debug.log


Solution

Not sure

Additional comments

rarestoma commented 3 years ago

Hi @jstevenson81,

Thank you for working with our products.

Paper Dashboard PRO Angular v1.0.4 is working with Angular 10. Can you please try using it with Angular 10 and see if it works?

Thank you, Rares

jstevenson81 commented 3 years ago

I’ll give it a shot. That means I have to downgrade all my other apps that use angular cli or create a vm

rarestoma commented 3 years ago

Hi @jstevenson81,

We will update to the next version of Angular in the next months and then everything will hope perfectly.

Best regards, Rares

jstevenson81 commented 3 years ago

ng --version

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

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

Angular CLI: 10.1.5 Node: 16.2.0 OS: darwin x64

Angular: ... animations, common, compiler, compiler-cli, core, forms ... http, localize, platform-browser, platform-browser-dynamic ... router Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1001.5 (cli-only) @angular-devkit/build-angular @angular-devkit/core 10.1.5 (cli-only) @angular-devkit/schematics 10.1.5 (cli-only) @angular/cli 10.1.5 (cli-only) @schematics/angular 10.1.5 (cli-only) @schematics/update 0.1001.5 (cli-only) rxjs 6.6.2 (cli-only) typescript

npm i npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: paper-dashboard-pro-angular@1.4.0 npm ERR! Found: zone.js@0.11.1 npm ERR! node_modules/zone.js npm ERR! zone.js@"0.11.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer zone.js@"~0.10.3" from @angular/core@10.1.5 npm ERR! node_modules/@angular/core npm ERR! @angular/core@"10.1.5" from the root project npm ERR! peer @angular/core@"10.1.5" from @angular/common@10.1.5 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"10.1.5" 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/jonathanstevenson/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/jonathanstevenson/.npm/_logs/2021-06-05T22_22_17_087Z-debug.log

Still a no go with angular 10

rarestoma commented 3 years ago

Hi @jstevenson81,

I tried now installing it and it works as expected on my side with node v14.16.1 and npm v6.14.12. Can you please try with these versions and let me know if it works?

Best regards, Rares

DelAnt commented 2 years ago

I'd like support on the same but it has been some months since this was first reported so the current versions of files are rather different. Can you please confirm what would be the right approach at the moment.

Angular CLI: 13.0.2 Node: 16.13.0 Package Manager: npm 8.1.0 OS: darwin x64

npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: paper-dashboard-pro-angular@1.4.0 npm ERR! Found: zone.js@0.11.1 npm ERR! node_modules/zone.js npm ERR! zone.js@"0.11.1" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer zone.js@"~0.10.3" from @angular/core@10.1.5 npm ERR! node_modules/@angular/core npm ERR! @angular/core@"10.1.5" from the root project npm ERR! peer @angular/core@"10.1.5" from @angular/common@10.1.5 npm ERR! node_modules/@angular/common npm ERR! @angular/common@"10.1.5" 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/anton/.npm/eresolve-report.txt for a full report.

rarestoma commented 2 years ago

Hi @DelAnt,

Thank you for working with our products.

Paper Dashboard PRO Angular v1.4.0 is built on top of Angular 10, can you please try installing it using Angular 10 CLI?

Thank you, Rares

DelAnt commented 2 years ago

Thanks for the feedback. It took some trail and error but I eventually got it to work on my machine. One key element was to use the --legacy-peer-deps options for installing. npm install --legacy-peer-deps

`ng --version Your global Angular CLI version (13.0.2) is greater than your local version (10.1.5). The local Angular CLI version is used.

To disable this warning use "ng config -g cli.warnings.versionMismatch false".

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

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

Angular CLI: 10.1.5 Node: 16.13.0 OS: darwin x64

Angular: 10.1.5 ... animations, cli, common, compiler, compiler-cli, core, forms ... platform-browser, platform-browser-dynamic, router Ivy Workspace: Yes

Package Version

@angular-devkit/architect 0.1001.5 @angular-devkit/build-angular 0.1001.5 @angular-devkit/core 10.1.5 @angular-devkit/schematics 10.1.5 @angular/http 7.2.16 @angular/localize 10.2.5 @schematics/angular 10.1.5 @schematics/update 0.1001.5 rxjs 6.6.3 typescript 4.0.3`