小编Gri*_*air的帖子

在子位置运行时,react-scripts 父文件夹 node_modules 错误

(Create-React-App)当在子文件夹中运行react-scripts build(c:\Repos\web_app1\api_ui)及其自己的package.jsonnode_modules文件夹等时,出现以下错误:

 react-scripts build


There might be a problem with the project dependency tree.
It is likely not a bug in Create React App, but something you need to fix locally.

The react-scripts package provided by Create React App requires a dependency:

  "babel-loader": "8.0.4"

Don't try to install it manually: your package manager does it automatically.
However, a different version of babel-loader was detected higher up in the tree:

  c:\Repos\web_app1\node_modules\babel-loader (version: 7.1.4)
Run Code Online (Sandbox Code Playgroud)
  • 无法将父文件夹的 …

node-modules reactjs webpack create-react-app babel-loader

8
推荐指数
1
解决办法
1169
查看次数