Hi everyone!
When I tried to do either a production or a development build of my Expo react native project, I’m encountering an issue with the currently released react-native version 0.72.5
. The error suggests a version incompatibility between the required node
version for @react-native/normalize-colors@0.73.1
and the node
version present in the environment.
Error:
[stderr]
warning react-native-video > shaka-player@2.5.23: Shaka Player < v4.2 is no longer supported.
[2/4] Fetching packages...
[stderr]
error @react-native/normalize-colors@0.73.1: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.18.1"
[stderr]
error Found incompatible module.
Versions:
eas-cli/5.3.0
darwin-arm64
node-v20.7.0
npx 10.1.0
expo-doctor 1.1.3
"react-native": "^0.72.5",
"expo": "^49.0.12",
"babel-preset-expo": "^9.5.2",
What have I tried?
nvm install node --reinstall-packages-from=node
: node version from 18.18.0 to 20.7.0- Reinstalled
react-native
rm -rf node_modules
andnpm i
npx expo-doctor
:Didn't find any issues with the project!
Has anyone encountered the same error? How did you solve it?
Thank you!