You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[FIXED] Unable to create new RN 0.72 project with Node 16 again #40797
Thanks for reporting - we're about to publish an update to normalize-colors removing the Node 18 restriction, and tighten the transitive dependency via react-native-deprecated-prop-types.
Workaround
As a mitigation, you can init the project using Node 18, add a resolutions field to your package.json, and then drop back to Node 16.
nvm use 18
npx --yes react-native@0.72.5 init testcli72 --template react-native@0.72.5 --skip-install
cd testcli72
Add to your new package.json as a top-level field (docs: resolutions):
Please retry npx react-native init from now, and it should work.
In existing recently created projects, you should be able to remove the "resolutions" workaround (and/or delete yarn.lock and reinstall).
We're sorry this issue happened! Thanks @robhogan for actioning changes. We're following up with a more durable fix to eliminate the "*" version specifier from the dependency tree — which will prevent future changes impacting current React Native versions.
changed the title [-]Unable to create new RN 0.72 project with Node 16 again[/-][+][FIXED] Unable to create new RN 0.72 project with Node 16 again[/+]on Oct 12, 2023
Activity
github-actions commentedon Oct 11, 2023
Jore commentedon Oct 12, 2023
Yeah, I'm having the same issue. :(
robhogan commentedon Oct 12, 2023
Thanks for reporting - we're about to publish an update to
normalize-colorsremoving the Node 18 restriction, and tighten the transitive dependency viareact-native-deprecated-prop-types.Workaround
As a mitigation, you can init the project using Node 18, add a
resolutionsfield to yourpackage.json, and then drop back to Node 16.nvm use 18 npx --yes react-native@0.72.5 init testcli72 --template react-native@0.72.5 --skip-install cd testcli72Add to your new
package.jsonas a top-level field (docs:resolutions):huntie commentedon Oct 12, 2023
Resolved — please retry creating new React Native projects
We've just published
@react-native/normalize-colors@0.74.1, which removes the Node 18 constraint and should resolve this issue.npx react-native initfrom now, and it should work."resolutions"workaround (and/or deleteyarn.lockand reinstall).We're sorry this issue happened! Thanks @robhogan for actioning changes. We're following up with a more durable fix to eliminate the
"*"version specifier from the dependency tree — which will prevent future changes impacting current React Native versions.[-]Unable to create new RN 0.72 project with Node 16 again[/-][+][FIXED] Unable to create new RN 0.72 project with Node 16 again[/+]Verdaccio: proxy `@react-native/normalize-colors` from NPM (#40971)