From 92cdb1f8aa3074b054074f3155a73782d89ab650 Mon Sep 17 00:00:00 2001 From: Arushi Kesarwani Date: Wed, 7 Jun 2023 13:37:21 -0700 Subject: [PATCH] Breaking - Bump minimum Node version from 16 to 18 (#37709) Summary: X-link: https://github.com/facebook/metro/pull/1002 Pull Request resolved: https://github.com/facebook/react-native/pull/37709 ## Bump minimum Node JS version to 18 via `react-native/package.json#engines` In https://github.com/facebook/react-native/pull/35443 we bumped up the node version from 16 to 18. Node 16 [ends maintenance releases on 2023-09-11](https://nodejs.org/en/blog/announcements/nodejs16-eol/), and bumping this minimum will allow other associated Node JS tools (CLI, Metro, Jest) to reduce their support burden. This follows up by formally making Node 18 the minimum supported version. **Docs PR:** https://github.com/facebook/react-native-website/pull/3748 **Changelog:** [General][Breaking] Bump minimum Node JS version to 18 Differential Revision: D46462639 fbshipit-source-id: ff19f37b85963ac9206d0c320f761101443d4246 --- packages/react-native/package.json | 2 +- packages/react-native/template/package.json | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/react-native/package.json b/packages/react-native/package.json index 31ff4085f1175b..08d3eeead06c6a 100644 --- a/packages/react-native/package.json +++ b/packages/react-native/package.json @@ -21,7 +21,7 @@ ], "bugs": "https://github.com/facebook/react-native/issues", "engines": { - "node": ">=16" + "node": ">=18" }, "bin": "./cli.js", "types": "types", diff --git a/packages/react-native/template/package.json b/packages/react-native/template/package.json index d98247f43312de..9ddba360bca1fd 100644 --- a/packages/react-native/template/package.json +++ b/packages/react-native/template/package.json @@ -31,6 +31,6 @@ "typescript": "5.0.4" }, "engines": { - "node": ">=16" + "node": ">=18" } }