creativetimofficial / material-dashboard-angular2

Material Dashboard Angular
https://demos.creative-tim.com/material-dashboard-angular2/
MIT License
1.01k stars 2.09k forks source link

[Bug] Can't install #111

Open timmclaurin opened 3 years ago

timmclaurin commented 3 years ago

Version

2.5.0

Reproduction link

http://donthaveone.com/

Operating System

ubuntu

Device

PC

Browser & Version

N/a

Steps to reproduce

user@Peanut:/www/roller$ 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!

What is expected?

A complete build

What is actually happening?

Errors out


Solution

Additional comments

Bought the bundle, but had issues with order. Waiting for CT team to respond. Tried the free version but it won't build: What do i need to do to be able to build cleanly? I've tried cleaning, forcing, etc.

timmclaurin commented 3 years ago

Removed the conflicting packages from package.json. Finally got it to install. Also had to remove agm/core from app modules.

rarestoma commented 3 years ago

Hi @timmclaurin!

Thank you for working with our products.

Can you please give me the steps that you did so I can test them and see what happens?

Thank you, Rares

timmclaurin commented 3 years ago
  1. Download src zip
  2. unzip to folder
  3. npm install
    • This fails with conflicts
  4. remove conflicted package entries from package.json
    • install succeeds
  5. ng build
    • fails because of @agm/core
  6. remove agm/core and references in modules.ts
    • build works and site compiles.
rarestoma commented 3 years ago

Hi @timmclaurin,

I tested now but I don't receive errors after running npm install.

I use node v14.16.1 and npm v6.14.12.

Can you please tell me what versions are you using?

Thank you, Rares

timmclaurin commented 3 years ago

Angular CLI: 11.2.11 Node: 16.1.0 OS: linux x64

NPM: 7.11.2

disorder75 commented 3 years ago

Hi @timmclaurin,

I tested now but I don't receive errors after running npm install.

I use node v14.16.1 and npm v6.14.12.

Can you please tell me what versions are you using?

Thank you, Rares

Hi,

the deps are broken with node >= 15 and npm >= 7.x.x. A downgrade to node v14.16.1 and npm v6.14.12 will compile correctly the entire project. At the moment, the only way to work with the latest packages is to follow the instructions wrote by @timmclaurin