[英]Unable to resolve dependency tree when using npm install error
So when I cloned a project and ran npm install
in my bash terminal, it gave me this "unable to resolve dependency tree" error.因此,当我克隆一个项目并在我的 bash 终端中运行
npm install
时,它给了我这个“无法解析依赖树”错误。 I checked to see if I wasn't in any subfolder and I deleted my node_modules and package-lock.json as well.我检查了我是否不在任何子文件夹中,并删除了我的 node_modules 和 package-lock.json 。 I have node version 12.18.3 and npm version 7.12.1.
我有节点版本 12.18.3 和 npm 版本 7.12.1。 I'm certain I have updated both of them.
我确定我已经更新了它们。 I even ran the command
npm i --force
and npm i -legacy-peer-deps
and both didn't work.我什至运行了命令
npm i --force
和npm i -legacy-peer-deps
都没有工作。 Terminal error终端错误
Try deleting node_module, package-lock.json, and then run the following:尝试删除node_module、package-lock.json,然后运行以下命令:
npm cache verify
npm install
npm start
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.