[英]ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app
I created a .NET Core React project on Oracle Linux 7. After installing all the necessary dependencies I ran into the following error in the console when I access the app from the web.我在 Oracle 上创建了一个 .NET Core React 项目 Linux 7. 安装所有必要的依赖项后,当我从 web 访问该应用程序时,我在控制台中遇到了以下错误。
ERROR in Plugin "react" was conflicted between "package.json » eslint-config-react-app » /home/opc/amnathrig/node_modules/eslint-config-react-app/base.js" and "BaseConfig » /usr/lib/node_modules/react-scripts/node_modules/eslint-config-react-app/base.js".插件“react”中的错误在“package.json » eslint-config-react-app » /home/opc/amnathrig/node_modules/eslint-config-react-app/base.js”和“BaseConfig » /usr/”之间发生冲突lib/node_modules/react-scripts/node_modules/eslint-config-react-app/base.js”。
The error message is clear but I have no idea how to get around it.错误消息很清楚,但我不知道如何解决它。
I was installing packages to the main application directory instead of the ClientApp folder.我将软件包安装到主应用程序目录而不是 ClientApp 文件夹。 I thought about deleting the question but in the event someone else runs into this problem, this may be the cause.我想过删除这个问题,但如果其他人遇到这个问题,这可能就是原因。
please use npm update -g
where g
is global.请使用npm update -g
其中g
是全局的。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.