---
title: "Discussion on \"What does npm install with --force and --legacy-peer-deps do exactly?\" | Hashnode"
description: "Discussion on \"What does npm install with --force and --legacy-peer-deps do exactly?\". When is it recommended to use?"
url: "https://hashnode.com/posts/what-does-npm-install-with-force-and-legacy-peer-deps-do-exactly/6428568bbf3bf29b13ae8653"
---

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

Discussion

# [What does npm install with --force and --legacy-peer-deps do exactly?](https://blog.allaroundjavascript.com/what-does-npm-install-with-force-and-legacy-peer-deps-do-exactly?utm_source=hashnode&utm_medium=feed)

When is it recommended to use?

Apr 1, 2023 · 5 min read · blog.allaroundjavascript.com  
Updated Jan 12, 2025  
Read the article

-   [#nodejs](https://hashnode.com/tag/nodejs)
-   [#continuous-integration](https://hashnode.com/tag/continuous-integration)
-   [#dependencies](https://hashnode.com/tag/dependencies)
-   [#npm-error](https://hashnode.com/tag/npm-error)
-   [#debugging](https://hashnode.com/tag/debugging)

## Written by

[Carmine Tambascia](https://hashnode.com/@carmine)

@carmine · Switzerland

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

software developer/ web developer

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
