简体   繁体   English

插件“react”中的错误在“package.json » eslint-config-react-app 之间发生冲突

[英]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.

相关问题 部署 React 应用程序时出错,它一直在说 &lt;&lt; Plugin "react" was conflicted between "package.json » eslint-config-react-app » &gt;&gt; - Error when deploying react app and it keeps sayings << Plugin "react" was conflicted between "package.json » eslint-config-react-app » >> 插件“react”在“package.json » eslint-config-react-app 之间发生冲突 - Plugin "react" was conflicted between "package.json » eslint-config-react-app 无法加载在“package.json » eslint-config-react-app »”中声明的插件“react”:输入意外结束 - Failed to load plugin 'react' declared in 'package.json » eslint-config-react-app » ': Unexpected end of input 无法加载在“package.json » eslint-config-react-app”中声明的插件“import”:找不到模块“typescript/package.json” - Failed to load plugin 'import' declared in 'package.json » eslint-config-react-app': Cannot find module 'typescript/package.json' 使用 nodemon 重新部署我的 React 应用程序时出错,它一直在说“插件“反应”在“package.json » eslint-config-react”-app » 之间发生冲突 - Error when redeploying my react app with nodemon it keeps sayings "Plugin "react" was conflicted between "package.json » eslint-config-react"-app » 无法加载在“package.json » eslint-config-react-app/jest”中声明的插件“jest”:无法读取未定义的属性(读取“meta”) - Failed to load plugin 'jest' declared in 'package.json » eslint-config-react-app/jest': Cannot read properties of undefined (reading 'meta') 无法加载在“package.json » eslint-config-react-app”中声明的插件“jsx-a11y”:意外的令牌 = - Failed to load plugin 'jsx-a11y' declared in 'package.json » eslint-config-react-app': Unexpected token = 如何解决这个错误:package.json » eslint-config-react-app/jest#overrides[0]: Environment key "jest/globals" is unknown - How to solve this error: package.json » eslint-config-react-app/jest#overrides[0]: Environment key "jest/globals" is unknown 插件“react”在“package.json”之间发生冲突 - Plugin "react" was conflicted between "package.json 无法加载在“package.json » eslint-config-react-app”中声明的插件“flowtype”:找不到模块“eslint/use-at-your-own-risk” - Failed to load plugin 'flowtype' declared in 'package.json » eslint-config-react-app': Cannot find module 'eslint/use-at-your-own-risk'
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM