<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/pnpm-11-28-g0urujyp5" -->

---
title: pnpm 11.28 | daily.dev
description: pnpm 11.28 introduces the forceIgnoresPlatform setting to skip installing optional dependencies for other platforms during a forced install, and adds pnpm...
canonical: https://daily.dev/posts/pnpm-11-28-g0urujyp5
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: pnpm 11.28 | daily.dev
og:description: pnpm 11.28 introduces the forceIgnoresPlatform setting to skip installing optional dependencies for other platforms during a forced install, and adds pnpm...
og:url: https://daily.dev/posts/pnpm-11-28-g0urujyp5
og:image: https://api.daily.dev/og/posts/g0UrujyP5.png
og:image:alt: pnpm 11.28
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 11.28

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

## Summary

pnpm 11.28 introduces the forceIgnoresPlatform setting to skip installing optional dependencies for other platforms during a forced install, and adds pnpm update --peer to update peerDependencies ranges. The release backports a large batch of pnpm 12 fixes to the JavaScript CLI covering pnpm deploy, --filter, nodeLinker: hoisted, and custom modulesDir setups. It also ships several security fixes: userAgent placeholders in pnpm-workspace.yaml are no longer expanded, packages in a custom modulesDir are no longer treated as workspace projects (preventing unapproved lifecycle scripts), Nix bin shims can no longer be hijacked by dependencies named like system utilities, shell completion strips control/invisible characters, and pnpm store prune no longer follows symlinked dlx cache roots.

## Full article

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

## Questions this post answers

### What does the forceIgnoresPlatform setting do in pnpm 11.28?

forceIgnoresPlatform, new in pnpm 11.28, changes the behavior of pnpm install --force so it skips installing optional dependencies built for another os, cpu, or libc. Normally --force installs every optional dependency including those for other platforms; setting forceIgnoresPlatform: false restores that behavior. The default stays true in pnpm 11, and pnpm 12 makes this the default behavior for --force.

_Developers tuning cross-platform installs can track setting changes like this one on daily.dev._

### How do I update peerDependencies ranges automatically with pnpm?

Run pnpm update --peer, added in pnpm 11.28, which also updates the version ranges listed in peerDependencies, something the regular pnpm update command leaves untouched. For example, pnpm update --peer react updates react's peerDependencies range alongside its normal dependency update. This closes a longstanding gap where peer ranges could drift out of sync with actual installed versions.

_Teams keeping peer dependency ranges in sync can follow pnpm updates like this on daily.dev._

### What security fix did pnpm make regarding userAgent in pnpm-workspace.yaml?

pnpm no longer expands environment variables in a userAgent field set inside a project's pnpm-workspace.yaml; any such userAgent value is now ignored entirely. Previously pnpm sent the expanded variable's value to the configured registry, risking leakage of environment variable contents such as secrets to that registry. This was tracked as issue #15415 and fixed as part of pnpm 11.28's security batch.

_Developers auditing dependency tooling for secret leaks can follow security fixes like this on daily.dev._

## Similar posts on daily.dev

- [pnpm 12.17.0](https://daily.dev/posts/pnpm-12-17-0-xy4jijzo5) · Fast, disk space efficient package manager \| pnpm · 0 upvotes · 0 comments
- [pnpm 12.18.0](https://daily.dev/posts/pnpm-12-18-0-pg97oyqw8) · Fast, disk space efficient package manager \| pnpm · 0 upvotes · 0 comments
- [pnpm 12.7](https://daily.dev/posts/pnpm-12-7-ot65yjyad) · Fast, disk space efficient package manager \| pnpm · 11 upvotes · 0 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
- [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

---

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

[View this post on daily.dev](https://daily.dev/posts/pnpm-11-28-g0urujyp5)

```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 11.28","url":"https://daily.dev/posts/pnpm-11-28-g0urujyp5","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pnpm-11-28-g0urujyp5"},"datePublished":"2026-09-25T11:19:33.179Z","dateModified":"2026-09-25T11:19:58.606Z","description":"pnpm 11.28 introduces the forceIgnoresPlatform setting to skip installing optional dependencies for other platforms during a forced install, and adds pnpm...","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-11-28-g0urujyp5","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":15},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"javascript,pnpm","timeRequired":"PT8M"}
{"@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 11.28"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pnpm-11-28-g0urujyp5#faq","mainEntity":[{"@type":"Question","name":"What does the forceIgnoresPlatform setting do in pnpm 11.28?","acceptedAnswer":{"@type":"Answer","text":"forceIgnoresPlatform, new in pnpm 11.28, changes the behavior of pnpm install --force so it skips installing optional dependencies built for another os, cpu, or libc. Normally --force installs every optional dependency including those for other platforms; setting forceIgnoresPlatform: false restores that behavior. The default stays true in pnpm 11, and pnpm 12 makes this the default behavior for --force. Developers tuning cross-platform installs can track setting changes like this one on daily.dev."}},{"@type":"Question","name":"How do I update peerDependencies ranges automatically with pnpm?","acceptedAnswer":{"@type":"Answer","text":"Run pnpm update --peer, added in pnpm 11.28, which also updates the version ranges listed in peerDependencies, something the regular pnpm update command leaves untouched. For example, pnpm update --peer react updates react's peerDependencies range alongside its normal dependency update. This closes a longstanding gap where peer ranges could drift out of sync with actual installed versions. Teams keeping peer dependency ranges in sync can follow pnpm updates like this on daily.dev."}},{"@type":"Question","name":"What security fix did pnpm make regarding userAgent in pnpm-workspace.yaml?","acceptedAnswer":{"@type":"Answer","text":"pnpm no longer expands environment variables in a userAgent field set inside a project's pnpm-workspace.yaml; any such userAgent value is now ignored entirely. Previously pnpm sent the expanded variable's value to the configured registry, risking leakage of environment variable contents such as secrets to that registry. This was tracked as issue #15415 and fixed as part of pnpm 11.28's security batch. Developers auditing dependency tooling for secret leaks can follow security fixes like this on daily.dev."}}]}
```

