creativetimofficial / material-kit

Free and Open Source UI Kit for Bootstrap 5, React, Vue.js, React Native and Sketch based on Google's Material Design
https://www.creative-tim.com/product/material-kit?ref=mk-creativetimofficial-github
MIT License
5.91k stars 1.35k forks source link

[Bug] node modules error #217

Open reefgb96 opened 1 year ago

reefgb96 commented 1 year ago

Version

Material Kit 2

Reproduction link

http://localhost:3000/

Operating System

Windows 10

Device

PC

Browser & Version

Chrome 108.0.5359.125

Steps to reproduce

  1. new teminal
  2. npm install

What is expected?

create node modules folder and installing dependencies

What is actually happening?

npm install npm ERR! code ERESOLVE npm ERR! ERESOLVE could not resolve npm ERR! npm ERR! While resolving: @mui/material@5.2.0 npm ERR! Found: @emotion/react@11.4.1 npm ERR! node_modules/@emotion/react npm ERR! @emotion/react@"11.4.1" from the root project npm ERR! peer @emotion/react@"^11.0.0-rc.0" from @emotion/styled@11.3.0 npm ERR! node_modules/@emotion/styled npm ERR! @emotion/styled@"11.3.0" from the root project npm ERR! peerOptional @emotion/styled@"^11.3.0" from @mui/material@5.2.0 npm ERR! node_modules/@mui/material npm ERR! @mui/material@"5.2.0" from the root project npm ERR! 1 more (@mui/icons-material) npm ERR! 1 more (@mui/styled-engine) npm ERR! 1 more (@mui/styled-engine) npm ERR! npm ERR! Could not resolve dependency: npm ERR! peerOptional @emotion/react@"^11.5.0" from @mui/material@5.2.0 npm ERR! node_modules/@mui/material npm ERR! @mui/material@"5.2.0" from the root project npm ERR! peer @mui/material@"^5.0.0" from @mui/icons-material@5.2.0 npm ERR! node_modules/@mui/icons-material npm ERR! @mui/icons-material@"5.2.0" from the root project npm ERR! npm ERR! Conflicting peer dependency: @emotion/react@11.10.5 npm ERR! node_modules/@emotion/react npm ERR! peerOptional @emotion/react@"^11.5.0" from @mui/material@5.2.0 npm ERR! node_modules/@mui/material npm ERR! @mui/material@"5.2.0" from the root project npm ERR! peer @mui/material@"^5.0.0" from @mui/icons-material@5.2.0 npm ERR! node_modules/@mui/icons-material npm ERR! @mui/icons-material@"5.2.0" 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 C:\Users\USER\AppData\Local\npm-cache\eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in: npm ERR! C:\Users\USER\AppData\Local\npm-cache_logs\2022-12-18T09_28_32_347Z-debug-0.log


Solution

i don't have one yet i was hoping you could help solve this issue. Thank you.

Additional comments