Can't use along with electron-react-boilerplate?

Author: dzptCreated Aug 3, 2022Updated Oct 30, 2023

I've tried to install along with electron-react-boilerplate then got this error

bash
npm install react-desktop --save


npm ERR! code ERESOLVE
npm ERR! ERESOLVE unable to resolve dependency tree
npm ERR!
npm ERR! While resolving: undefined@undefined
npm ERR! Found: [email protected]
npm ERR! node_modules/react
npm ERR!   react@"^18.2.0" from the root project
npm ERR!
npm ERR! Could not resolve dependency:
npm ERR! peer react@"^15.0 || ^16.0" from [email protected]
npm ERR! node_modules/react-desktop
npm ERR!   react-desktop@"*" 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.

Source: gabrielbull/react-desktop