Zum Hauptinhalt springen
tsecurity.de LIVE
Echtzeit-Radar & Feeds
Alle RSS Feeds
👥 Community & Social
Sichere ProgrammierungGit con contexto: tu primer flujo de ramas y commits en GitKraken(21.09.2026 um 20:38 Uhr)
Sichere ProgrammierungFaster Starts, Less JavaScript Overhead(21.09.2026 um 20:40 Uhr)
Sichere ProgrammierungPolymarket TWAP Market Maker: Quote Engine Design(21.09.2026 um 20:40 Uhr)
Sichere ProgrammierungAgentic Flow for a Simple SPA Anyone Can Build(21.09.2026 um 20:42 Uhr)
Sichere Programmierungephemora-cell 1.0.4: a stateless MCP tool server, now on PyPI!!(21.09.2026 um 20:44 Uhr)
Sichere ProgrammierungBeeLadybug Ironic: Debugging the Code vs. Debugging the Mind(21.09.2026 um 20:49 Uhr)
Sichere ProgrammierungHow Code Reviews Made Me a Happier Developer(21.09.2026 um 20:53 Uhr)
Linux Tipps & HardeningGNOME vs KDE vs Cinnamon for daily use?(21.09.2026 um 20:11 Uhr)
Sichere ProgrammierungGit con contexto: tu primer flujo de ramas y commits en GitKraken(21.09.2026 um 20:38 Uhr)
Sichere ProgrammierungFaster Starts, Less JavaScript Overhead(21.09.2026 um 20:40 Uhr)
Sichere ProgrammierungPolymarket TWAP Market Maker: Quote Engine Design(21.09.2026 um 20:40 Uhr)
Sichere ProgrammierungAgentic Flow for a Simple SPA Anyone Can Build(21.09.2026 um 20:42 Uhr)
Sichere Programmierungephemora-cell 1.0.4: a stateless MCP tool server, now on PyPI!!(21.09.2026 um 20:44 Uhr)
Sichere ProgrammierungBeeLadybug Ironic: Debugging the Code vs. Debugging the Mind(21.09.2026 um 20:49 Uhr)
Sichere ProgrammierungHow Code Reviews Made Me a Happier Developer(21.09.2026 um 20:53 Uhr)
Linux Tipps & HardeningGNOME vs KDE vs Cinnamon for daily use?(21.09.2026 um 20:11 Uhr)
Intelligence View
⚡ tsecurity.de Intelligence

ERR_PNPM_BAD_PM_VERSION This project is configured to use vX of pnpm. Your current pnpm is vY

The problem If you started using corepack to manage versions of your package manager you might have bumped into a very curious case of two very similar commands returning different results: # Calling `pnpm` directly, this works…

0
↗ Quelle (dev.to)
Reagiere als Erste:r — dein Feedback zählt!




The problem



If you started using corepack to manage versions of your package manager you might have bumped into a very curious case of two very similar commands returning different results:




# Calling `pnpm` directly, this works perfectly fine:
> pnpm install
Lockfile is up to date, resolution step is skipped
Already up to date
Done in 1.5s

# Calling `pnpm` through `ember-cli`, this one fails:
> ember install ember-leaflet
🚧 Installing packages... This might take a couple of minutes.
Command failed with exit code 1: pnpm add --save-dev ember-leaflet
 ERR_PNPM_BAD_PM_VERSION 
This project is configured to use v9.7.0 of pnpm.
Your current pnpm is v9.1.2






You might have tried (like me) to "fix the project" by running:




> corepack prepare [email protected] --activate
> corepack use [email protected]
> corepack install --global [email protected]






But the result would be still the same.






The analysis



What is the issue here? Why do we have enforced v9.7.0 everywhere, but ember command uses v9.1.2 somehow?



If you run version check from within your project you will, indeed, get the correct version:




> cd ~/my-project
> pnpm --version
9.7.0






But if you run the same command from somewhere else (your home) directory, you will get the "wrong" version:




> cd ~
> pnpm --version
9.1.2






Which is a clue. Now let's take a look at where did the ember in your ember install ember-leaflet command came from:




> cd ~/my-project
> which ember
/Users/michal/Library/pnpm/ember






Aha! So it's my global ember-cli installation and not the project one (which lives in ~/my-project/node_modules/ember-cli/bin/ember).






Solution






Local



If you want to use in project installed version of ember-cli, you can do so by executing the ember command via pnpm exec:




> pnpm exec ember install ember-leaflet









Global



Or you can pin the global version of pnpm to the version matching your project:




> corepack install --global [email protected]
> pnpm --version
9.7.0
> cd ~/my-project
> ember install ember-leaflet
🚧 Installing packages... This might take a couple of minutes.
pnpm: Installed leaflet@^1.9.3
Installed addon package.









pnpm managed by corepack



If you want to solve the global version mismatch, you might bump into an issue where pnpm was installed from different sources than corepack and changing the version within corepack would not influence what version is executed as the other installation would take precedence.



I don't have a straightforward solution for this as it heavily depends on your situation and what setup you want to run, but if you (like me) want to just keep using corepack for managing your pnpm versions you might try following:




  1. brew uninstall pnpm

  2. npm uninstall pnpm -g

  3. Follow the uninstalling pnpm docs

  4. Remove any references of PNPM_HOME from your shell config (~/.zshrc)

  5. Reload your shell config (~/.zshrc)

  6. corepack install --global [email protected]

  7. Check what version is now globally available by running in your home directory: pnpm --version






Home directory shenanigans



It might happen that when you're in your home directory pnpm --version command still shows some other version than your global one. Why is that? Well corepack uses packageManager field in your package.json to determine if it should use local version instead of the global one. And it might be that your home directory contains package.json file and thus it looks like a project folder. Simply remove this file, you very likely created it by accident and don't want package.json in ~ directory.






Illustration made by ChatGPT v4o using prompt: "Confused hamster looking at spaghetti of source code, trying to make sense of it --ar 16:9"

Ähnliche Beiträge
🔍 Verwandte News

Auch interessante Nachrichten ERR_PNPM_BAD_PM_VERSION This project is configured to use vX of pnpm. Your current pnpm is vY

Thematisch verwandte Begriffe: ERRPNPMBADPMVERSION, This, project, configured · 6 Treffer

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Laden...

Beiträge werden geladen ...

Laden...

Videos werden geladen ...

Zum Aktualisieren ziehen
ZERO-DAY CVE-2026-77582 | Tinyauth is an authentication and authorization server. Prior to 5.1.0, …
Advisory →
TTS Reader • tsecurity.de Voice
tsecurity.de Icon
tsecurity.de App
Offline-Lesen, Eilmeldungen & 0ms Ladezeit

Installiere tsecurity.de direkt auf deinen Home-Bildschirm für das ultimative Vollbild-Magazinerlebnis ohne Browser-Leisten.

Nächster Beitrag
Themen-Radar & Intelligence Matrix
Echtzeit-Taxonomie nach Angriffsvektoren & Plattformen

tsecurity.de Live Threat Radar

🔴 LIVE RADAR
MONITORING
AKTIV
CVE-DATENBANK
LIVE
🔍
Community Radar & Live Chat
Sentinel Bot online • Live-Stream
Dein Cluster: Security Explorer
Match:
lädt…
Verbindung zum Community-Stream wird aufgebaut...
Bearbeitungsmodus — Senden überschreibt deine Nachricht
Community-Puls — was gerade passiert
lädt…
Aktivitäten deiner Analysten
lädt…
Neues Thema oder Eilmeldung einreichen

Reiche interessante Links, Zero-Days oder Debatten ein. Die Community entscheidet per Upvote über die Veröffentlichung.

Heiß diskutierte Einreichungen
🔖 Gespeicherte Artikel
📂 Keine gespeicherten Artikel vorhanden.
Zurück Ziehen Vor
Links: vorheriger Artikel Rechts: nächster Artikel unten: schließen
News NIS-2 Frühwarnung Tier-1 Intel ⏱️ 3 Min vor 10 Min
Artikeldaten werden geladen...

Zurück: vorheriger Vor: nächster
↗ Original-Quelle
Social Reaktionen Deine Reaktion zählt
Einstufung & Relevanz-Poll 0 Stimmen
In sozialen Netzwerken teilen 1-Klick