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] Unable to resolve dependency tree #171

Closed
snymty opened this issue Nov 20, 2021 · 3 comments
Closed

[Bug] Unable to resolve dependency tree #171

snymty opened this issue Nov 20, 2021 · 3 comments

Comments

@snymty
Copy link

snymty commented Nov 20, 2021

Version

v1.10.0

Reproduction link

https://github.com/creativetimofficial/material-dashboard

Operating System

MacOs

Device

Mac mini m1

Browser & Version

Chrone

Steps to reproduce

npm install in file where all files are unzipped

What is expected?

To install all packages

What is actually happening?

@mac-mini material-kit-pro-react-v1.10.0 % npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: material-kit-pro-react@1.10.0
npm ERR! Found: react@17.0.2
npm ERR! node_modules/react
npm ERR! react@"17.0.2" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@">= 15.4.1 < 17.0.0-0" from react-animate-on-scroll@2.1.5
npm ERR! node_modules/react-animate-on-scroll
npm ERR! react-animate-on-scroll@"2.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/aljaz/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:


Solution

Fix dependency tree

Additional comments

@sajadevo
Copy link
Collaborator

**Hi @snymty **
Please use the following method:

  1. Download and install yarn globally using npm: npm i -g yarn
  2. Head over to the product directory and run the following command: yarn install

All the best
Sajad

@tylerlazenby
Copy link

I don't like that solution nearly as much because it really makes it hard to use IDE's that optimized around NPM and not yarn. Yes it allows you to get that project started but now you can't really leverage your IDE which slows down production considerably.

@sajadevo
Copy link
Collaborator

**Hi @byuilazenbyt **

Its only a quick fix for current situation and we are updating our products and for the new updates you can use it with both npm and yarn.

All the best
Sajad

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