0

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. here is a image of the error message

  • 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 Answers3

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:

  1. Remove your node_modules folder (rm -rf node_modules)
  2. npm cache clean -f
  3. npm install --legacy-peer-deps
Amirhossein
  • 1,819
  • 1
  • 6
  • 10
0

npm config set legacy-peer-deps true use this in my case it worked