简体   繁体   English

Create React App 中项目依赖树的问题

[英]Problem with project dependency tree in Create React App

I've cloned a GitHub repo and was installing the packages.我克隆了一个 GitHub 存储库并正在安装软件包。 I first ran yarn install , and then I ran yarn build .我首先运行yarn install ,然后运行yarn build But the second command gave me an error:但是第二个命令给了我一个错误:

错误图像

Could somebody help me with this please?有人可以帮我解决这个问题吗? I would really appreciate it!我真的很感激! Thank you!谢谢!

I had a similar issue, and it was because I had installed webpack in previous directories.我有一个类似的问题,这是因为我在以前的目录中安装了 webpack。 You have probably installed a webpack in C:\Users\eden1\node_modules .您可能已经在C:\Users\eden1\node_modules Try removing that with npm remove webpack when you are located in C:\Users\eden1 or remove the globally installed webpack with npm remove -g webpack . Try removing that with npm remove webpack when you are located in C:\Users\eden1 or remove the globally installed webpack with npm remove -g webpack .

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法创建 React 应用程序,因为 NPM 是“无法解析依赖树” - Cannot create React app as NPM is "unable to resolve dependency tree" npm 在创建离子应用 React 时无法解析依赖树 - npm unable to resolve dependency tree when create a ionic app React 使用 create-react-app 和 storybook 的依赖树错误 - dependency tree error using create-react-app and storybook 项目依赖树的错误 Babel Eslint 问题 - Error Babel Eslint problem with the project dependency tree 尝试在之后立即启动 React 时出错(项目依赖树可能有问题......) - Getting an error trying to start React right after (There might be a problem with the project dependency tree…) 从 create-react-app 项目中排除 Webpack 的依赖项 - Exclude Dependency from Webpack from create-react-app project 创建反应应用程序抛出错误“无法解析依赖树”和“修复上游依赖冲突” - Create react app throwing errors 'unable to resolve dependency tree' and 'fix upstream dependency conflict' 如何在 create-react-app 项目中为 lodash 执行摇树? - How to perform tree shaking for lodash in a create-react-app project? 使用 create-react-app 创建 React 项目后的问题 - Problem right after creating a React project with create-react-app React:create-react-app 创建一个“充满问题”的项目 - React: create-react-app creates a "problem-filled" project
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM