-1

I am trying to install react-form-input-fields in my React project:

npm i react-form-input-fields

but it is showing an error: enter image description here

My React version is ^17.0.2, Node version v14.18.1. Will this package only work up to React 16 version?

Sounak Das
  • 23
  • 6
  • https://stackoverflow.com/questions/66239691/what-does-npm-install-legacy-peer-deps-do-exactly-when-is-it-recommended-wh – Andy Nov 07 '21 at 18:04

1 Answers1

0

Will this package only work up to React 16 version?

When you get a message like this, there's always a chance it will work anyway but the authors of the package don't guarantee it and likely don't test it. You can install with npm i --legacy-peer-deps react-form-input-fields (or a number of other ways, but that's both the easiest and least likely to do something terribly wrong) and then test a lot to see how it goes. Or you can use react@16 instead of react@17.

Trott
  • 66,479
  • 23
  • 173
  • 212