npm troubleshooting

Fix npm ERR ERESOLVE During Deploy

ERESOLVE means npm could not resolve peer dependencies under the stricter install used in CI. Fix the dependency versions instead of relying on local node_modules.

Common symptoms

  • Deploy fails during npm install.
  • Logs show npm ERR! ERESOLVE unable to resolve dependency tree.
  • Local app works because node_modules already exists.

What to check first

Platform: npm
Error: ERR ERESOLVE during deploy

ERESOLVE means npm could not resolve peer dependencies under the stricter install used in CI. Fix the dependency versions instead of relying on local node_modules.

Step-by-step fix

  1. Read the peer dependency conflict in the npm log.
  2. Upgrade or downgrade the conflicting package pair together.
  3. Delete node_modules and run npm install locally to reproduce.
  4. Commit the updated package-lock.json.
rm -rf node_modules package-lock.json
npm install
npm run build

Common mistake to avoid

Do not use --legacy-peer-deps as a permanent fix unless you understand the broken peer dependency.

Still stuck?

Send the deploy log, repository link, target platform, and expected URL. ShipFast Deploy Rescue is a fixed-price debugging service for indie projects and MVPs.