thecodingmachine / react-native-boilerplate

A React Native template for building solid applications 🐙, using JavaScript 💛 or Typescript 💙 (you choose).
https://thecodingmachine.github.io/react-native-boilerplate/
MIT License
4.75k stars 864 forks source link

[BUG]: Unable to install dependencies with Node 16 #378

Closed wuuJiawei closed 1 year ago

wuuJiawei commented 1 year ago

react-native environment setup

Description

error metro-config@0.79.0: The engine "node" is incompatible with this module. Expected version ">=18". Got "16.20.2"
error Found incompatible module.

Maybe the same issue like https://github.com/facebook/react-native/issues/38298

Version

3.7.2

Do you use TypeScript?

On which OS this issue appear on?

Desktop OS

macos Ventura 13.5

wuuJiawei commented 1 year ago

After upgrading ReactNative to 0.72.2 and removing @types/metro-config, the problem is solved.

JeremyDolle commented 1 year ago

Hello, the solution is to upgrade your Node version instead of removing dependencies. FYI, the current LTS version of node is 18.17.1 so you could easily upgrade it without any danger.