Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Can't install #111

Open
timmclaurin opened this issue May 4, 2021 · 6 comments
Open

[Bug] Can't install #111

timmclaurin opened this issue May 4, 2021 · 6 comments

Comments

@timmclaurin
Copy link

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
Copy link
Author

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

@rarestoma
Copy link
Contributor

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
Copy link
Author

  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
Copy link
Contributor

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
Copy link
Author

Angular CLI: 11.2.11
Node: 16.1.0
OS: linux x64

NPM: 7.11.2

@disorder75
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants