[eslint] Plugin “react” was conflicted between "package.json

in [eslint] Plugin "react" was conflicted between "package.json » eslint-config-react-app » E:\React\my-app\node_modules\eslint-config-react-app\base.js" and "BaseConfig » E:\React\my-app\node_modules\.pnpm\registry.npmmirror.com+eslint-config-react-app@7.0.1_eslint@8.46.0+jest@27.5.1\node_modules\eslint-config-react-app\base.js".

在[eslint]插件中,“react”在“package.json»eslint-config react app»E:\react\my app\node_moduless-config react app\base.js”和“BaseConfig»E:\react\my apps\node_modeles.pnppm\registry.npmerror.com”之间发生冲突

解决问题

运行npm update -g会对node_module进行更新消除冲突

出现原因

使用pnpm add antd-mobile后出现,因为使用了不一样的工具安装依赖导致了配置冲突,使用更新以后可以消除冲突

Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐