Effect CommunityEC
Effect Community3y ago
12 replies
Cosimo Matteini

Error with Peer Dependencies in npm Install

Hi everybody! I'm trying to update to the latest releases:
"effect": "2.0.0-next.50" -> "2.0.0-next.55",
"@effect/schema": "0.45.5" -> "0.48.0",
"@effect/platform-node": "0.25.0" -> "0.31.1",


Full package.json

When I run npm install I get this error about peer dependencies:

npm ERR! code ERESOLVE
npm ERR! ERESOLVE could not resolve
npm ERR!
npm ERR! While resolving: football-calendar@1.0.0
npm ERR! Found: @effect/platform-node@0.25.0
npm ERR! node_modules/@effect/platform-node
npm ERR!   @effect/platform-node@"0.31.1" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! @effect/platform-node@"0.31.1" from the root project
npm ERR!
npm ERR! Conflicting peer dependency: effect@2.0.0-next.55
npm ERR! node_modules/effect
npm ERR!   peer effect@"2.0.0-next.55" from @effect/platform-node@0.31.1
npm ERR!   node_modules/@effect/platform-node
npm ERR!     @effect/platform-node@"0.31.1" from the root project
npm ERR!
npm ERR! Fix the upstream dependency conflict, or retry
npm ERR! this command with --force or --legacy-peer-deps
npm ERR! to accept an incorrect (and potentially broken) dependency resolution.


I checked @effect/platform-node peer deps and everything looks fine to me.

What could be causing this error? First time having issues updating this packages.

The only way to make it work is to delete package-lock.json, update versions in
package.json
and then npm install.
Was this page helpful?