Npm WARN jest-react-native@17.0.0 requires a peer whatwg-fetch@ ^ 1.0.0, but none have been installed

When I try to run npm install in a ReactNative project, I get this error. To solve this problem, I am also trying to set whatwg-fetch@ ^ 1.0.0, but the same error.

UNMET PEER DEPENDENCY whatwg-fetch@2.0.1 npm WARN jest-react-native@17.0.0 requires a peer of whatwg-fetch@ ^1.0.0 but none was installed. npm ERR! code 1 
+7
android npm reactjs react-native
source share
1 answer

you need to manually install missing peer dependencies
npm install whatwg-fetch@ ^1.0.0 --save

+13
source share

All Articles