npm i react instagram嵌入依赖项显示npm错误

npm i react instagram嵌入依赖项显示npm错误,npm,Npm,我只能在CLI上看到这一点。这种依赖关系是否起作用 npm ERR! code ERESOLVE npm ERR! ERESOLVE unable to resolve dependency tree npm ERR! npm ERR! While resolving: instagram-clone@0.1.0 npm ERR! Found: react@17.0.2 npm ERR! node_modul

我只能在CLI上看到这一点。这种依赖关系是否起作用

npm ERR! code ERESOLVE                                  
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!  
npm ERR! While resolving: instagram-clone@0.1.0      
npm ERR! Found: react@17.0.2  
npm ERR! node_modules/react  
npm ERR!   react@"^17.0.2" from the root project  
npm ERR!  
npm ERR! Could not resolve dependency:  
npm ERR! peer react@"^16.0.0 || ^15.0.0 || ~0.14.0" from react-instagram-embed@2.0.0  
npm ERR! node_modules/react-instagram-embed    
npm ERR!   react-instagram-embed@"*" 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!

我看不出这个问题。提交问题前请阅读。看到了吗?您是否尝试过
rm-rf package-lock.json./node_modules&&npm i
?是的,它仍然不起作用。请在例如codesandbox中提供最小的可复制示例。没有它就不可能调试。