Skip to content

Error when install dependencies #3499

@paulocoutinhox

Description

@paulocoutinhox

Hi,

Im following the README file to install basic deps for R3F and get this error:

npm install three @types/three @react-three/fiber
npm error code ERESOLVE
npm error ERESOLVE unable to resolve dependency tree
npm error
npm error While resolving: undefined@undefined
npm error Found: react-dom@18.3.1
npm error node_modules/react-dom
npm error   peer react-dom@"^18.0.0" from react-native-web@0.19.13
npm error   node_modules/react-native-web
npm error     peerOptional react-native-web@"*" from expo-gl@15.0.4
npm error     node_modules/expo-gl
npm error       peerOptional expo-gl@">=11.0" from @react-three/fiber@9.1.0
npm error       node_modules/@react-three/fiber
npm error         @react-three/fiber@"*" from the root project
npm error
npm error Could not resolve dependency:
npm error peerOptional react-dom@"^19.0.0" from @react-three/fiber@9.1.0
npm error node_modules/@react-three/fiber
npm error   @react-three/fiber@"*" from the root project
npm error
npm error Fix the upstream dependency conflict, or retry
npm error this command with --force or --legacy-peer-deps
npm error to accept an incorrect (and potentially broken) dependency resolution.
npm error
npm error
npm error For a full report see:
npm error /Users/paulo/.npm/_logs/2025-03-14T22_41_39_320Z-eresolve-report.txt
npm error A complete log of this run can be found in: /Users/paulo/.npm/_logs/2025-03-14T22_41_39_320Z-debug-0.log

Can you help me?

Thanks.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions