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

---
title: pnpm 12.7 | daily.dev
description: pnpm 12.7 adds several new features: the global node shim now follows .nvmrc and .node-version files, pnpm install gains an --allow-build flag, pnpm publish...
canonical: https://daily.dev/posts/pnpm-12-7-ot65yjyad
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: pnpm 12.7 | daily.dev
og:description: pnpm 12.7 adds several new features: the global node shim now follows .nvmrc and .node-version files, pnpm install gains an --allow-build flag, pnpm publish...
og:url: https://daily.dev/posts/pnpm-12-7-ot65yjyad
og:image: https://api.daily.dev/og/posts/Ot65YjYAD.png
og:image:alt: pnpm 12.7
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.7

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

## Summary

pnpm 12.7 adds several new features: the global node shim now follows .nvmrc and .node-version files, pnpm install gains an --allow-build flag, pnpm publish gains --publish-wait-timeout to wait for published packages to be available, and pnpm install can now generate pnpm-workspace.yaml from package.json's workspaces field. pnpm install --force no longer installs optional dependencies for other platforms. The release also includes several security fixes: environment variable expansion in userAgent is disabled, a Nix bin-shim redirection issue is fixed, store/cache directories are no longer treated as workspace projects, and lifecycle-script packages are no longer hard-linked into the virtual store to prevent source rewriting. A long list of bug fixes across installing, resolving, workspaces, publishing, and Windows/WSL support round out the release.

## Full article

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

## Questions this post answers

### How do I make pnpm's global node shim automatically use the Node version from my .nvmrc file?

In pnpm 12.7, the project-aware global node shim automatically reads the Node.js version from the nearest .nvmrc or .node-version file when the project doesn't declare a runtime in devEngines.runtime or engines.runtime. Within a directory, package.json takes precedence over .node-version, which takes precedence over .nvmrc. Values only nvm understands, like 'system' or a custom alias, are ignored.

_Teams juggling multiple Node versions across projects can track pnpm changes like this on daily.dev._

### Why does pnpm install --force still skip optional dependencies for other platforms in newer versions?

As of pnpm 12.7, pnpm install --force keeps skipping optional dependencies whose os, cpu, or libc don't match the host machine, even though --force still refetches every package and lifts engineStrict. This changed behavior from earlier versions; if you need the old behavior of installing all optional dependencies regardless of platform, set forceIgnoresPlatform: true.

_Debugging platform-specific install quirks gets easier when you track pnpm release changes on daily.dev._

### What security vulnerability did pnpm fix related to userAgent in pnpm-workspace.yaml?

pnpm 12.7 fixed a vulnerability where pnpm expanded environment variables in a userAgent value set in a project's pnpm-workspace.yaml, sending the variable's actual value to the configured registry. Now such a userAgent is simply ignored rather than expanded, preventing accidental leakage of environment variable contents to registries during install or publish operations.

_Developers auditing dependency-management security fixes can follow releases like this via daily.dev._

## Similar posts on daily.dev

- [pnpm 12.8](https://daily.dev/posts/pnpm-12-8-6geqcckjt) · Fast, disk space efficient package manager \| pnpm · 5 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 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 12.19.0](https://daily.dev/posts/pnpm-12-19-0-etydupssf) · Fast, disk space efficient package manager \| pnpm · 0 upvotes · 0 comments

---

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

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

```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.7","url":"https://daily.dev/posts/pnpm-12-7-ot65yjyad","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/pnpm-12-7-ot65yjyad"},"datePublished":"2026-09-25T11:19:33.137Z","dateModified":"2026-09-25T11:19:57.348Z","description":"pnpm 12.7 adds several new features: the global node shim now follows .nvmrc and .node-version files, pnpm install gains an --allow-build flag, pnpm publish...","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-7-ot65yjyad","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":11},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"security,general-programming,nodejs,pnpm","timeRequired":"PT10M"}
{"@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.7"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/pnpm-12-7-ot65yjyad#faq","mainEntity":[{"@type":"Question","name":"How do I make pnpm's global node shim automatically use the Node version from my .nvmrc file?","acceptedAnswer":{"@type":"Answer","text":"In pnpm 12.7, the project-aware global node shim automatically reads the Node.js version from the nearest .nvmrc or .node-version file when the project doesn't declare a runtime in devEngines.runtime or engines.runtime. Within a directory, package.json takes precedence over .node-version, which takes precedence over .nvmrc. Values only nvm understands, like 'system' or a custom alias, are ignored. Teams juggling multiple Node versions across projects can track pnpm changes like this on daily.dev."}},{"@type":"Question","name":"Why does pnpm install --force still skip optional dependencies for other platforms in newer versions?","acceptedAnswer":{"@type":"Answer","text":"As of pnpm 12.7, pnpm install --force keeps skipping optional dependencies whose os, cpu, or libc don't match the host machine, even though --force still refetches every package and lifts engineStrict. This changed behavior from earlier versions; if you need the old behavior of installing all optional dependencies regardless of platform, set forceIgnoresPlatform: true. Debugging platform-specific install quirks gets easier when you track pnpm release changes on daily.dev."}},{"@type":"Question","name":"What security vulnerability did pnpm fix related to userAgent in pnpm-workspace.yaml?","acceptedAnswer":{"@type":"Answer","text":"pnpm 12.7 fixed a vulnerability where pnpm expanded environment variables in a userAgent value set in a project's pnpm-workspace.yaml, sending the variable's actual value to the configured registry. Now such a userAgent is simply ignored rather than expanded, preventing accidental leakage of environment variable contents to registries during install or publish operations. Developers auditing dependency-management security fixes can follow releases like this via daily.dev."}}]}
```

