npm WARN react-native-fs@2.16.6 requires a peer of react-native@^0.59.5 but none is installed. You must install peer dependencies yourself.
npm WARN react-native-fs@2.16.6 requires a peer of react-native-windows@^0.57.2 but none is installed. You must install peer dependencies yourself.当我运行npm install时,会出现这两个警告。我知道我可以通过运行npm install react-native-windows来解决第二个问题,但我不确定如何解决第一个问题。
我目前正在运行react-native 0.63.3。如果我试图降级到0.59.5,我得到了一大堆其他问题。
在这里的react-native-fs npmjs指令中,它列出了这个版本的reat-native-fs应该用于RN > 0.61,这只会增加我对为什么这不起作用的困惑。

我可以提供任何其他可能重要的文件。谢谢你的帮助!
发布于 2020-11-21 23:26:14
我做了"npm install --save react-native-fs --legacy-peer-deps“和"react-native link react-native-fs”
这个模块对我来说工作得很好。
https://stackoverflow.com/questions/64472045
复制相似问题