npm ERR, when i npm install react-pin-input --save - reactjs

PS E:\ناهور کلون\nahoorclone\nohour> npm install react-pin-input --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: nahor#0.1.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#"^0.14.0 || ^15.4.2 || ^16.2.0" from react-pin-input#1.0.1
npm ERR! node_modules/react-pin-input
npm ERR! react-pin-input#"*" 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\2021-12-07T12_44_04_659Z-debug.log
my npm is the latest version but I get this error. what is the problem? how can I install react-pin-input?

Looks like your using React 17 and react-pin-input doesn't support 17 yet. You'll need to downgrade your react version to 16 to use that npm package.

Related

Installing #mui/material results in dependency conflict

I am trying to install #mui/material
npm install #mui/material
But, when I do it throws this error:
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: paper-kit-react#1.0.0
npm ERR! Found: react#16.8.6
npm ERR! node_modules/react
npm ERR! react#"16.8.6" from the root project
npm ERR! peer react#">=16.8.0" from #emotion/react#11.10.4
npm ERR! node_modules/#emotion/react
npm ERR! #emotion/react#"^11.10.4" from the root project
npm ERR! peerOptional #emotion/react#"^11.5.0" from #mui/material#5.10.5
npm ERR! node_modules/#mui/material
npm ERR! #mui/material#"*" from the root project
npm ERR! 1 more (#emotion/styled)
npm ERR! 1 more (#emotion/styled)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^17.0.0 || ^18.0.0" from #mui/material#5.10.5
npm ERR! node_modules/#mui/material
npm ERR! #mui/material#"*" 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 /home/pc/.npm/eresolve-report.txt for a full report.
Any idea what's going on?
As I can see you are using React Version 16.8.6 .
You need at least React Version >= 17.0.0 as you can read in the MUI docs.
I hope this solves your problem.

facing problem installing react chat engine

whenever i try to install react-chat-engine it is giving me this error
PS C:\Users\HP\Desktop\React\Chat_App\chat-app-jsm> npm install react-chat-engine
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: chat-app-jsm#0.1.0
npm ERR! Found: react#18.2.0
npm ERR! node_modules/react
npm ERR! react#"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.8.0 || ^17.0.1" from react-chat-engine#1.11.23
npm ERR! node_modules/react-chat-engine
npm ERR! react-chat-engine#"*" 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\HP\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\HP\AppData\Local\npm-cache\_logs\2022-09-15T11_58_58_927Z-debug-0.log
what should I do?
The package you are trying to install has react#16 dependency but your project is built on react#18.
Try out this commands:
npm i react-chat-engine --legacy-peer-deps
npm i react-chat-engine --force

Installing react native image edit

I have a problem while installing npm package - react image edit and I have an error.
PS C:\editor\Baby_PhotoEditor> npm install react-native-imageedit --save
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: babyphoto3#0.0.1
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.2" from react-native-imageedit#1.1.1
npm ERR! node_modules/react-native-imageedit
npm ERR! react-native-imageedit#"*" 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\Данила\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\Данила\AppData\Local\npm-cache\_logs\2022-07-20T21_03_15_534Z-debug-0.log
PS C:\editor\Baby_PhotoEditor>

Npm install didn`t work if nodejs version 16.0.0

Hi there I just cloned my repo and tried to nnpm install and I got this error
npm install
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! Found: react#16.13.0
npm ERR! node_modules/react
npm ERR! react#"16.13.0" from the root project
npm ERR! peer react#">=16.8" from framer-motion#2.9.5
npm ERR! node_modules/framer-motion
npm ERR! framer-motion#"^2.7.5" from the root project
npm ERR! 23 more (react-dom, next, rc-drawer, react-custom-scrollbars, ...)
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.13.1 || ^17.0.0" from #mdx-js/react#1.6.22
npm ERR! node_modules/#theme-ui/mdx/node_modules/#mdx-js/react
npm ERR! #mdx-js/react#"^1.0.0" from #theme-ui/mdx#0.3.5
npm ERR! node_modules/#theme-ui/mdx
npm ERR! #theme-ui/mdx#"0.3.5" from theme-ui#0.3.5
npm ERR! node_modules/theme-ui
npm ERR! theme-ui#"^0.3.1" from the root project
npm ERR! 1 more (#theme-ui/theme-provider)
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.
So if I figured it out, that I had to change the version of my nodejs it doesn`t work if version 16, but it worked on version 14.

NPM ERR when installing particle.js in React

I am getting below error when installing particle.js in my React App:
code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app-test#0.1.0
npm ERR! Found: react#17.0.1
npm ERR! node_modules/react
npm ERR! react#"^17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react#"^16.0.0" from react-particles-js#3.4.1
npm ERR! node_modules/react-particles-js
npm ERR! react-particles-js#"*" 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\gydee\AppData\Local\npm-cache\eresolve-report.txt for a full report.
it is a problem coming from version 7 of npm use:
npm install --legacy-peer-deps
fixed it for me
npm install react-particles-js --force

Resources