Corrija o conflito de dependência upstream ou tente novamente este comando com-force ou-lele-peer-de-Deps para aceitar uma resolução de dependência incorreta (e potencialmente quebrada).

'--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