Fix the upstream dependency conflict, or retry this command with --force, or --legacy-peer-deps to accept an incorrect (and potentially broken) dependency resolution.
'--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