What are peer dependencies, and How to fix issues with peer dependencies found in pnpm?
What are peer dependencies, and How to we fix issues with peer dependencies found in pnpm?

PNPM

What are peer dependencies, and How to we fix issues with peer dependencies found in pnpm?

Fix the peer dependencies issue in pnpm.

Published in
3 min readMay 16, 2024

--

PNPM is a very famous package managed in the node community. It is speedy to install any node package locally as compared to npm and yarn.

I hope if you used pnpm on a daily basis, you see the following error:

Issues with peer dependencies found

The peer dependencies error look like this:

➜  react-19 git:(main) ✗ pnpm update  next@14.3.0-canary.63


Packages: +16 -7
++++++++++++++++-------
Downloading registry.npmjs.org/@next/swc-linux-x64-musl/14.3.0-canary.63: 50.81 MB/50.81 MB, done
Progress: resolved 381, reused 357, downloaded 1, added 1, done
node_modules/.pnpm/sharp@0.33.3/node_modules/sharp: Running install script, done in 130ms

dependencies:
- next
+ next 14.3.0-canary.63

WARN Issues with peer dependencies found
.
└─┬ next 14.3.0-canary.63
├── ✕ unmet peer react@19.0.0-beta-4508873393-20240430: found 19.0.0-beta-26f2496093-20240514
└── ✕ unmet peer react-dom@19.0.0-beta-4508873393-20240430: found 19.0.0-beta-26f2496093-20240514

Done in 53.4s

What are peer dependencies?

--

--

Follow me if you learn more about JavaScript | TypeScript | React.js | Next.js | Linux | NixOS | https://linktr.ee/officialrajdeepsingh