【发布时间】:2023-01-30 13:21:47
【问题描述】:
我似乎无法理解为什么会发生此错误。我正在尝试使用另一个已经创建的新 react-native 项目创建一个新的 react-native 项目,该项目位于目录树中不低于其他安装的不同目录中。我已经卸载并重新安装了我认为可能是问题的节点。我使用了 brew doctor 并删除了我之前安装的自制软件 usr/local/includes
我正在尝试全新安装 React-native,但看来我做不到。
感谢您的任何帮助。
这是我不断收到的错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: react-native@0.67.4
npm ERR! node_modules/react-native
npm ERR! peer react-native@"*" from @react-native-community/cli@6.4.0
npm ERR! node_modules/@react-native-community/cli
npm ERR! @react-native-community/cli@"^6.0.0" from react-native@0.67.4
npm ERR! react-native@"0.69.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! react-native@"0.69.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: react@18.0.0
npm ERR! node_modules/react
npm ERR! peer react@"18.0.0" from react-native@0.69.1
npm ERR! node_modules/react-native
npm ERR! react-native@"0.69.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force, or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.
npm ERR!
npm ERR! See /Users/Name/.npm/eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! /Users/Name/.npm/_logs/2022-07-14T06_15_09_791Z-debug-0.log
【问题讨论】:
标签: node.js react-native npm