【发布时间】:2021-12-24 15:06:32
【问题描述】:
尝试安装plugin-gatsby-react-helment时出现以下错误
npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: gatsproject@1.0.0
npm ERR! Found: gatsby@3.14.6
npm ERR! node_modules/gatsby
npm ERR! gatsby@"^3.11.1" from the root project
npm ERR!
npm ERR! peer gatsby@"^4.0.0-next" from gatsby-plugin-react-helmet@5.4.0
npm ERR! node_modules/gatsby-plugin-react-helmet
npm ERR! gatsby-plugin-react-helmet@"*" 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\Asus\AppData\Local\npm-cache\eresolve-report.txt for a full report.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\Asus\AppData\Local\npm-cache\_logs\2021-12-24T14_44_33_845Z-debug.log
但是 react-helmet 安装得很好 我一无所知
【问题讨论】:
-
它可能来自您的缓存。转到此目录( C:\Users\Asus\AppData\Local\ )并删除“npm-cache”然后重试
标签: gatsby gatsby-plugin