我有一个反应原生项目,我尝试进行 npm 更新,但收到此错误:
npm ERR! Found: react@17.0.1
npm ERR! node_modules/react
npm ERR! react@"17.0.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"17.0.2" from react-dom@17.0.2
npm ERR! node_modules/react-dom
npm ERR! react-dom@"^17.0.2" from the root project
我不想用“--force”或“--legacy-peer-deps”强制更新我该如何解决?