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