Problem: Error ‘npm ERR! ERESOLVE unable to resolve dependency tree’ & Warning: How to fix NPM warnings
Error Solution:
- Remove the package-lock.json and node_modules files
- Install these old packages with
npm install --force
- run
npm outdated
- see what packages are in red
- do upgrade from the current version to the wanted version with
npm install --save packagename@wanted_version
or open thepackage.json
file and change with wanted version and runnpm install
Warning Solution:
6. If there is a warning, update it again with the latest version according to the above order.
Fixed the problem.