devfolioco / react-otp-input

:heavy_check_mark: OTP Input Component for React
http://devfolioco.github.io/react-otp-input
MIT License
654 stars 424 forks source link

npm i react-otp-input #369

Closed hung2003attack closed 1 year ago

hung2003attack commented 1 year ago

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

hung2003attack commented 1 year ago

I can't install

jashenco commented 1 year ago

Use yarn add react-otp-input

kvraamkey commented 1 year ago

@hung2003attack if you're in NPM try as below

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

pacarvalho commented 1 year ago

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

prateek3255 commented 1 year ago

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