creativetimofficial / light-bootstrap-dashboard-react

React version of Light Bootstrap Dashboard
MIT License
755 stars 1.05k forks source link

[Bug] Unable to run "npm install" #85

Open stdunbar opened 1 year ago

stdunbar commented 1 year ago

Version

2.0.1

Reproduction link

https://notneeded.tld/

Operating System

Unbuntu 22.04

Device

Desktop

Browser & Version

n/a

Steps to reproduce

  1. Using npm version 8.19.2 from the Node 18.12.1 package run "npm install" after extracting the zip or forking the repository.

    What is expected?

    The code will compile/build.

    What is actually happening?

    npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: light-bootstrap-dashboard-react@2.0.1 npm ERR! Found: chartist@0.11.4 npm ERR! node_modules/chartist npm ERR! chartist@"0.11.4" from the root project npm ERR! npm ERR! Could not resolve dependency: npm ERR! peer chartist@"^0.10.1" from react-chartist@0.14.4 npm ERR! node_modules/react-chartist npm ERR! react-chartist@"0.14.4" 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.


Solution

npm install --legacy-peer-deps does get you through the build with many deprecated warnings.

Additional comments

mohsenmhs commented 1 year ago

Run with Yarn: "yarn"