When you install this package, that error may occur because your previous version of package not suitable with your package you want to install then. You can use this command "npm-install-yourpackage -- legacy-peer-deps". It will sync your package.