devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React

Home Page:http://devfolioco.github.io/react-otp-input

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

npm i react-otp-input

hung2003attack opened this issue · comments

npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: client@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.2.0" from react-otp-input@2.4.0
npm ERR! node_modules/react-otp-input
npm ERR! react-otp-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 /home/hung/.npm/eresolve-report.txt for a full report.

npm ERR! A complete log of this run can be found in:
npm ERR! /home/hung/.npm/_logs/2022-11-09T08_53_28_967Z-debug-0.log

I can't install

Use yarn add react-otp-input

@hung2003attack
if you're in NPM try as below

npm i react-otp-input --legacy-peer-deps

commented

Is this library still accepting pull requests and updating the NPM registry? It would be great to update the peer dependencies...

Updated the peer dependencies to allow all React 17 and 18 versions with v3