sakshi_
sakshi_

Reputation: 15

Cannot install ReactMde dependency

I'm building a notes app and for that I tried to install dependencies. One of them was react-mde. When I tried to install, it showed errors and was not able to install. here is the attached image of the errors I was getting while installing it:

$ npm i react-mde
npm: ERR! code ERESOLVE
npm: ERR! ERESOLVE unable to resolve dependency tree
npm: ERR!
npm: ERR! While resolving: [email protected]
npm: ERR! Found: [email protected]
npm: ERR! node_modules/react
npm: ERR!   reac@"^18.1.0" from the root project
npm: ERR!
npm: ERR! Could not resolve dependency:
npm: ERR! peer pear@"^17.0.0" from [email protected] 
npm: ERR! node_modules/react-mde 
npm: ERR!   react-mde@"*" from the root project
npm: ERR!
npm: ERR! Fix the upstream dependency conflict, or retry 
npm: ERR! this ceomand with --force, or --legacy-peer-deps 
npm: ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm: ERR! 

Edited: Original image

Upvotes: 0

Views: 149

Answers (2)

ItzMaxTV
ItzMaxTV

Reputation: 86

Try forcing an installation using npm install --force or running it using npm i react-mde --force

Upvotes: 0

Junior Marques
Junior Marques

Reputation: 402

It seems if the react-mde library is not compatible with version 18 of React.

Try to make a downgrade from your react version to v17 and retry install the react-mde package again.

Upvotes: 1

Related Questions