[英]why I cant start my react project after webpack updated?
I updated my webpack and after that I cant start my project, that error says:我更新了我的 webpack,之后我无法启动我的项目,该错误说:
The react-scripts package provided by Create React App requires a dependency: "webpack": "4.42.0" Don't try to install it manually: your package manager does it automatically. However, a different version of webpack was detected higher up in the tree: C:\Users\SarandKala\node_modules\webpack (version: 4.43.0) Manually installing incompatible versions is known to cause hard-to-debug issues.
Sounds like you installed webpack in the parent directory (\\SarandKala) of your project, instead of the project itself.听起来您将 webpack 安装在项目的父目录 (\\SarandKala) 中,而不是项目本身。
You could try navigating to C:\\Users\\SarandKala\\ and deleting the node_modules folder that is found there, and re-running npm install
while inside your project folder.您可以尝试导航到 C:\\Users\\SarandKala\\ 并删除在那里找到的 node_modules 文件夹,然后在项目文件夹中重新运行
npm install
。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.