在我的React中安装particle.js时,我遇到了以下错误:
code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: app-test@0.1.0
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@"^16.0.0" from react-particles-js@3.4.1
npm ERR! node_modules/react-particles-js
npm ERR! react-particles-js@"*" 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 C:\Users\gydee\AppData\Local\npm-cache\eresolve-report.txt for a full report.发布于 2021-06-24 13:28:59
这是国家预防机制使用第7版产生的一个问题:
npm install --legacy-peer-deps帮我修好了
发布于 2021-06-19 15:59:17
npm install react-particles-js --forcehttps://stackoverflow.com/questions/66418886
复制相似问题