react-native-reanimated & react-navigation/drawer 依赖错误
react-native-reanimated & react-navigation/drawer dependency error
-
react-native
-
react-native-drawer
-
react-native-debugger
-
react-native-reanimated
-
react-native-reanimated-v2
我遇到了一个问题,我已经问过 react-native-reanimated
GitHub 存储库中的讨论选项卡:这是 link in the github repo
我已经克隆了一个 react-native 项目并尝试使用 npm install 安装 npm 包,但是我遇到了以下错误
我做了什么?
- 我试过 npm install --legacy-peer-deps,没有帮助
- 我已经从头开始安装了这些包,没有帮助
- 我已经尝试用 yarn 安装包,错误消失了,但问题仍然存在
- 我也试过在应用程序上配置脚蹼,但应用程序也没有
连接到脚蹼
如有任何想法和建议,我们将不胜感激:)
这个问题将通过 运行 npm 和 --legacy-peer-deps
来解决,这将告诉 npm 除了查看 package-lock.json
之外不要做任何其他事情文件并安装您以前在 node_modules
文件夹中的版本。
npm install --legacy-peer-deps
我应该提一下,您将在使用 npm 版本 7 或更高版本时看到此输出。
react-native
react-native-drawer
react-native-debugger
react-native-reanimated
react-native-reanimated-v2
我遇到了一个问题,我已经问过 react-native-reanimated
GitHub 存储库中的讨论选项卡:这是 link in the github repo
我已经克隆了一个 react-native 项目并尝试使用 npm install 安装 npm 包,但是我遇到了以下错误
我做了什么?
- 我试过 npm install --legacy-peer-deps,没有帮助
- 我已经从头开始安装了这些包,没有帮助
- 我已经尝试用 yarn 安装包,错误消失了,但问题仍然存在
- 我也试过在应用程序上配置脚蹼,但应用程序也没有 连接到脚蹼
如有任何想法和建议,我们将不胜感激:)
这个问题将通过 运行 npm 和 --legacy-peer-deps
来解决,这将告诉 npm 除了查看 package-lock.json
之外不要做任何其他事情文件并安装您以前在 node_modules
文件夹中的版本。
npm install --legacy-peer-deps
我应该提一下,您将在使用 npm 版本 7 或更高版本时看到此输出。