React-native-fs 与 RN 的对等依赖?
React-native-fs peer dependency with RN?
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 出现这两个警告。我知道我可以通过 运行ning npm install react-native-windows 解决第二个问题,但我不确定如何解决第一个问题。
我目前有 react-native 0.63.3 运行ning。如果我尝试降级到 0.59.5,我会遇到许多其他问题。
这里在 react-native-fs npmjs 说明中列出了这个版本的 reat-native-fs 应该用于 RN > 0.61,这只会让我更加困惑为什么这不起作用。
我可以提供任何其他可能重要的文件。感谢您的帮助!
我做了“npm install --save react-native-fs --legacy-peer-deps”和“react-native link react-native-fs”
这个模块对我来说工作得很好。
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 出现这两个警告。我知道我可以通过 运行ning npm install react-native-windows 解决第二个问题,但我不确定如何解决第一个问题。
我目前有 react-native 0.63.3 运行ning。如果我尝试降级到 0.59.5,我会遇到许多其他问题。
这里在 react-native-fs npmjs 说明中列出了这个版本的 reat-native-fs 应该用于 RN > 0.61,这只会让我更加困惑为什么这不起作用。
我可以提供任何其他可能重要的文件。感谢您的帮助!
我做了“npm install --save react-native-fs --legacy-peer-deps”和“react-native link react-native-fs”
这个模块对我来说工作得很好。