---
title: "Discussion on \"npm ERESOLVE: --legacy-peer-deps vs --force (What Each Really Does)\" | Hashnode"
description: "Discussion on \"npm ERESOLVE: --legacy-peer-deps vs --force (What Each Really Does)\". npm has two messages with \"ERESOLVE\" in them, and they're easy to mix up. One is an error and the install stops. The other is a warning and the install carries on. The usual advice for both is \"add --"
url: "https://hashnode.com/posts/npm-eresolve-legacy-peer-deps-vs-force-what-each-really-does/6b000e57bfb2c083f58fabdc"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [npm ERESOLVE: --legacy-peer-deps vs --force (What Each Really Does)](https://knowledgemarkg.hashnode.dev/npm-eresolve-legacy-peer-deps-vs-force-what-each-really-does?utm_source=hashnode&utm_medium=feed)

npm has two messages with "ERESOLVE" in them, and they're easy to mix up. One is an error and the install stops. The other is a warning and the install carries on. The usual advice for both is "add --

3d ago · 9 min read · knowledgemarkg.hashnode.dev  
Read the article

-   [#npm](https://hashnode.com/tag/npm)
-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#javascript](https://hashnode.com/tag/javascript)
-   [#web-development](https://hashnode.com/tag/web-development)

## Written by

[Kausar Raza](https://hashnode.com/@knowledgemarkg)

@knowledgemarkg

  
[View profile](https://hashnode.com/@knowledgemarkg)

Freelance web developer: Next JS, ASP NET Core, site speed and technical SEO. Real errors, real fixes.

Freelance web developer building fast, search-friendly websites for small businesses in the UK, US and Europe. I work with Next JS, React and ASP NET Core, and write about the real problems I hit: Core Web Vitals, caching, IndexNow, technical SEO. Original posts and free tools at knowledgemarkg.com

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
