简体   繁体   English

npm i react-form-input-fields 显示错误

[英]npm i react-form-input-fields showing error

I am trying to install react-form-input-fields in my React project:我正在尝试在我的 React 项目中安装react-form-input-fields

npm i react-form-input-fields

but it is showing an error:但它显示一个错误: 在此处输入图片说明

My React version is ^17.0.2, Node version v14.18.1.我的 React 版本是 ^17.0.2,Node 版本 v14.18.1。 Will this package only work up to React 16 version?这个包只适用于 React 16 版本吗?

Will this package only work up to React 16 version?这个包只适用于 React 16 版本吗?

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.您可以使用npm i --legacy-peer-deps react-form-input-fields (或许多其他方法,但这是最简单且最不可能做大错的)进行安装,然后进行大量测试以了解如何它去。 Or you can use react@16 instead of react@17 .或者您可以使用react@16而不是react@17

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM