creativetimofficial / ct-material-kit-pro-react

React version of Material Kit Pro
39 stars 12 forks source link

[Bug] npm install error #96

Closed julesmorel closed 2 years ago

julesmorel commented 2 years ago

Version

2.0

Operating System

Windows 10

Device

PC

Browser & Version

Firefox 99.0.1 (64-bit)

Steps to reproduce

Simply run "npm install" on the source code

What is expected?

Node packet manager is supposed to install smoothly any packages required

What is actually happening?

The following error happen:

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.9.0 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\jules\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\jules\AppData\Local\npm-cache_logs\2022-05-07T20_49_28_231Z-debug-0.log


Solution

Update the package emotion/react with npm i @emotion/react@11.5.0 --save

Additional comments

github-actions[bot] commented 2 years ago

@julesmorel this issue was automatically closed because it did not follow our rules:


IMPORTANT: Please use the following link to create a new issue:

https://www.creative-tim.com/new-issue/material-kit-pro-react

**If your issue was not created using the app above, it will be closed immediately.**

Love Creative Tim? Do you need Angular, React, Vuejs or HTML? You can visit:
👉  https://www.creative-tim.com/bundles
👉  https://www.creative-tim.com

sajadevo commented 2 years ago

Hi @julesmorel

Thanks for using our product, please run npm i --legacy-peer-deps and it will fix the issue.

Note: To get the latest updates and supports for the products and other related things to Creative Tim please join our Discord Community.

All the best, Sajad
 React Developer @ Creative-Tim.com