material-dashboard-angular2 icon indicating copy to clipboard operation
material-dashboard-angular2 copied to clipboard

[Bug] Can't install

Open timmclaurin opened this issue 4 years ago • 6 comments

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: [email protected] npm ERR! Found: [email protected] 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/[email protected] 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 [email protected] 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 avatar May 04 '21 02:05 timmclaurin

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

timmclaurin avatar May 04 '21 03:05 timmclaurin

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

rarestoma avatar May 04 '21 07:05 rarestoma

  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.

timmclaurin avatar May 04 '21 13:05 timmclaurin

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

rarestoma avatar May 05 '21 07:05 rarestoma

Angular CLI: 11.2.11 Node: 16.1.0 OS: linux x64

NPM: 7.11.2

timmclaurin avatar May 05 '21 19:05 timmclaurin

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

disorder75 avatar Jun 01 '21 21:06 disorder75