I recently updated some npm packages and now it throws an error whenever I try to install a package with npm. I am new to npm and JS packages.
Attatched is a image of the error.
Asked
Active
Viewed 600 times
0

MuteKn0wM0RE
- 45
- 4
-
Does this answer your question? [Unable to resolve dependency tree error when installing npm packages](https://stackoverflow.com/questions/64573177/unable-to-resolve-dependency-tree-error-when-installing-npm-packages) – Yilmaz Dec 04 '22 at 17:18
3 Answers
0
As suggested you can run npm install --save --legacy-peer-deps
and see if it may resolve your problem.
If not you can remove your node-modules
folder and your package-lock.json
file and run a fresh npm install
command.
Hope this works for you!

nuvin.ga
- 21
- 1
- 4
0
Try this:
- Remove your node_modules folder (
rm -rf node_modules
) npm cache clean -f
npm install --legacy-peer-deps

Amirhossein
- 1,819
- 1
- 6
- 10