So when I cloned a project and ran npm install
in my bash terminal, it gave me this "unable to resolve dependency tree" error. I checked to see if I wasn't in any subfolder and I deleted my node_modules and package-lock.json as well. I have node version 12.18.3 and npm version 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.
Terminal error
Asked
Active
Viewed 274 times
2

Kevin W
- 21
- 3
-
Were you on the right directory when you ran npm install? – Shah May 13 '21 at 19:14
-
1@Shah Yes. I wasn't in any subfolder and I deleted my node_modules and package-lock.json as well – Kevin W May 13 '21 at 19:19
1 Answers
0
Try deleting node_module, package-lock.json, and then run the following:
npm cache verify
npm install
npm start

Shah
- 2,126
- 1
- 16
- 21