Reason for the error
In new versions of npm, by default, npm install fails when encountering conflicting peerDependencies.
Solution
This situation can be resolved using --force or --legacy-peer-deps.
--force will ignore conflicts and force the acquisition of remote npm library resources, overwriting the original version when there is resource conflict.
--legacy-peer-deps: Ignore all peerDependencies during installation, ignore dependency conflicts, and use the style of npm version 4 to version 6 to install dependencies. The existing dependencies will not be overwritten.
It is recommended to use --legacy-peer-deps to be safer
Reinstall it in the terminal to resolve
npm install --legacy-peer-deps