creativetimofficial / ct-argon-dashboard-pro-angular

8 stars 4 forks source link

[Bug] Can't install #18

Open timmclaurin opened 3 years ago

timmclaurin commented 3 years ago

Version

1.2.0

Reproduction link

http://dont-have-one.com/

Operating System

WSL Ubuntu

Device

Windows

Browser & Version

n/a

Steps to reproduce

$ npm --version 7.11.2

$ ng --version

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

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

Angular CLI: 11.2.11 Node: 16.1.0 OS: linux x64

  1. Download package
  2. npm install

What is expected?

Expect build to complete with out error.

What is actually happening?

$ npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: material-dashboard-angular@2.5.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.4 npm ERR! node_modules/@angular/core npm ERR! @angular/core@"10.1.4" from the root project npm ERR! peer @angular/core@">=2.3.1 <12.0.0 || ^11.0.0-next || ^11.1.0-next || ^11.2.0-next" from codelyzer@6.0.1 npm ERR! node_modules/codelyzer npm ERR! dev codelyzer@"6.0.1" 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 /home/user/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! /home/user/.npm/_logs/2021-05-05T20_00_51_009Z-debug.log


Solution

Additional comments

Are there specific versions of npm / node / Angular that must be used?

aimanrahmattt commented 3 years ago

Same issue from my side. Cant install the dependencies. Any solution from creativetim?

timmclaurin commented 3 years ago

From a clean copy of the git repo, use --legacy-peer-deps

rarestoma commented 3 years ago

Hi guys,

Thank you for working with our products and sorry for my late response.

Can you please tell me what versions of npm and node are you using?

I tried with npm v6.14.12 and node v14.16.1 and it worked on my side.

Thank you, Rares

timmclaurin commented 3 years ago

See above for the versions. The latest versions don't work.

aderjanos commented 2 years ago

@rarestoma Even with npm v6.14.12 and node v14.16.1 I couldn't get it to work. During npm i it installs a load of deprecated packages and ng serve throws this error:

ERROR in ./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 3851:14-27
"export 'ɵRuntimeError' was not found in '@angular/core'
ERROR in ./node_modules/@angular/common/__ivy_ngcc__/fesm2015/common.js 4326:12-27
"export 'ɵisSubscribable' was not found in '@angular/core'
rarestoma commented 2 years ago

Hi @aderjanos,

To fix this error please go to package.json and replace "@angular/common": "^11.0.5" with "@angular/common": "11.0.5", then reinstall the dependencies.

Please let me know if it works.

Best regards, Rares

prostakov commented 2 years ago

Same issue here.

Is there a plan to update project to latest stable node and npm in long term?

rarestoma commented 2 years ago

Hi @prostakov,

Thank you for working with our products.

Yes, we will update this project to the latest version of node and npm.

Thank you, Rares

prostakov commented 2 years ago

@rarestoma, good to hear.

Is there a timeline?