Arregle el conflicto de dependencia aguas arriba o vuelva a intentar este comando con --force o --Legacy-peer-deps para aceptar una resolución de dependencia incorrecta (y potencialmente rota).

'--legacy-peer-deps' is what fixed this for me

# Place it after the keyword install like this:
npm install '--legacy-peer-deps' -S <whatever package>
# -S is the same as --save
# i.e
npm install '--legacy-peer-deps' --save react-useanimations
Code Rabbi