<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pnpm-12-6-ckbirvlqj" -->

---
title: pnpm 12.6 | daily.dev
description: pnpm 12.6 introduces automatic dependency deduplication via a new autoDedupe setting, relocatable node_modules directories on macOS and Linux, a --save-types...
canonical: https://daily.dev/posts/pnpm-12-6-ckbirvlqj
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: pnpm 12.6 | daily.dev
og:description: pnpm 12.6 introduces automatic dependency deduplication via a new autoDedupe setting, relocatable node_modules directories on macOS and Linux, a --save-types...
og:url: https://daily.dev/posts/pnpm-12-6-ckbirvlqj
og:image: https://api.daily.dev/og/posts/CKBIRvlqJ.png
og:image:alt: pnpm 12.6
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# pnpm 12.6

**[Fast, disk space efficient package manager \| pnpm](https://daily.dev/sources/pnpm-blog)** · 7 min read · 16 upvotes · 0 comments

## Summary

pnpm 12.6 introduces automatic dependency deduplication via a new autoDedupe setting, relocatable node_modules directories on macOS and Linux, a --save-types flag for installing matching @types/* packages, editable package.yaml manifests across common commands, and support for file: and link: protocols in catalogs. It also adds a pnpm tasks status command with priority-based task scheduling, macOS Time Machine exclusion settings for store directories, and smaller additions like --tilde as a --save-prefix=~ alias and improved cache pruning. The release includes several security-relevant patches: bin shims now resolve cygpath/wslpath from the system path to prevent shim hijacking, deprecation warning text is stripped to just package and version, and warnings are added for ignored .npmrc credential environment variables. Numerous fixes cover installation, resolution/linking, script running, configuration, Windows compatibility, and other areas.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://pnpm.io/blog/releases/12.6>

## Questions this post answers

### How do I enable automatic dependency deduplication in pnpm 12.6?

Set autoDedupe: true in pnpm-workspace.yaml. Once enabled, when a dependency appears at multiple versions and one version satisfies every range in the workspace, pnpm automatically picks that single version for the whole workspace during installation. Frozen installs leave the lockfile unchanged, so this only affects regular install runs.

_Track pnpm workspace changes like autoDedupe on daily.dev before your next dependency cleanup._

### What does the pnpm --save-types flag do when adding a package?

pnpm add <package> --save-types automatically saves the matching @types/* package into devDependencies alongside the registry dependency being installed, for example pnpm add express --save-types. Packages that already bundle their own TypeScript types are skipped. Setting saveTypes: true in pnpm-workspace.yaml makes this behavior the default for all installs.

_Developers wiring up TypeScript types can follow pnpm release notes like this on daily.dev._

### Can pnpm node_modules folders be moved to a different location without reinstalling?

Yes, as of pnpm 12.6 on macOS and Linux, node_modules and bin shims are relocatable: they can be reused after the project directory is moved or copied elsewhere. The first pnpm command run after the move checks the tree and records the new location, so commands invoked through node_modules/.bin keep working without a fresh install.

_Teams relying on portable node_modules setups can watch for pnpm updates like this on daily.dev._

## Similar posts on daily.dev

- [pnpm 12.19.0](https://daily.dev/posts/pnpm-12-19-0-etydupssf) · Fast, disk space efficient package manager \| pnpm · 0 upvotes · 0 comments
- [pnpm 12.10.0](https://daily.dev/posts/pnpm-12-10-0-1jmwtjsma) · Fast, disk space efficient package manager \| pnpm · 6 upvotes · 0 comments
- [pnpm 11 Adds Supply Chain Protection Defaults for Minimum Re...](https://daily.dev/posts/pnpm-11-adds-supply-chain-protection-defaults-for-minimum-re--wxgk3vhhu) · Socket · 101 upvotes · 6 comments
- [pnpm 11 cuts the npm umbilical cord](https://daily.dev/posts/pnpm-11-cuts-the-npm-umbilical-cord-vhucinbuf) · Bytes by ui.dev · 50 upvotes · 4 comments

---

Tags: [#general-programming](https://daily.dev/tags/general-programming), [#javascript](https://daily.dev/tags/javascript), [#nodejs](https://daily.dev/tags/nodejs), [#pnpm](https://daily.dev/tags/pnpm)

[View this post on daily.dev](https://daily.dev/posts/pnpm-12-6-ckbirvlqj)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"pnpm 12.6","url":"https://daily.dev/posts/pnpm-12-6-ckbirvlqj","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pnpm-12-6-ckbirvlqj"},"datePublished":"2026-09-22T18:10:17.709Z","dateModified":"2026-09-22T18:10:40.400Z","description":"pnpm 12.6 introduces automatic dependency deduplication via a new autoDedupe setting, relocatable node_modules directories on macOS and Linux, a --save-types...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/63763758f3e74381d631e88f7667e808?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/63763758f3e74381d631e88f7667e808?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Fast, disk space efficient package manager | pnpm","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Fast, disk space efficient package manager | pnpm","logo":"https://media.daily.dev/image/upload/s--JKuzGOiX--/f_auto,q_auto/v1787487440/logos/pnpm-blog?_a=BAMAMicg0","url":"https://daily.dev/sources/pnpm-blog"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/pnpm-12-6-ckbirvlqj","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":16},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"general-programming,javascript,nodejs,pnpm","timeRequired":"PT7M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Fast, disk space efficient package manager | pnpm","item":"https://daily.dev/sources/pnpm-blog"},{"@type":"ListItem","position":3,"name":"pnpm 12.6"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pnpm-12-6-ckbirvlqj#faq","mainEntity":[{"@type":"Question","name":"How do I enable automatic dependency deduplication in pnpm 12.6?","acceptedAnswer":{"@type":"Answer","text":"Set autoDedupe: true in pnpm-workspace.yaml. Once enabled, when a dependency appears at multiple versions and one version satisfies every range in the workspace, pnpm automatically picks that single version for the whole workspace during installation. Frozen installs leave the lockfile unchanged, so this only affects regular install runs. Track pnpm workspace changes like autoDedupe on daily.dev before your next dependency cleanup."}},{"@type":"Question","name":"What does the pnpm --save-types flag do when adding a package?","acceptedAnswer":{"@type":"Answer","text":"pnpm add \u003cpackage\u003e --save-types automatically saves the matching @types/* package into devDependencies alongside the registry dependency being installed, for example pnpm add express --save-types. Packages that already bundle their own TypeScript types are skipped. Setting saveTypes: true in pnpm-workspace.yaml makes this behavior the default for all installs. Developers wiring up TypeScript types can follow pnpm release notes like this on daily.dev."}},{"@type":"Question","name":"Can pnpm node_modules folders be moved to a different location without reinstalling?","acceptedAnswer":{"@type":"Answer","text":"Yes, as of pnpm 12.6 on macOS and Linux, node_modules and bin shims are relocatable: they can be reused after the project directory is moved or copied elsewhere. The first pnpm command run after the move checks the tree and records the new location, so commands invoked through node_modules/.bin keep working without a fresh install. Teams relying on portable node_modules setups can watch for pnpm updates like this on daily.dev."}}]}
```

