From 20b298de4af6a94d06815190da494cc23cb0a8ca Mon Sep 17 00:00:00 2001 From: legobt <6wbvkn0j@anonaddy.me> Date: Fri, 16 Feb 2024 06:55:03 +0000 Subject: [PATCH] Revert "chore: update Node.js to v20 (#22755)" This reverts removal of support for node v18 in #22755, and suggests using node v18 instead of node v20 for local dev. See: https://github.com/yarnpkg/berry/issues/5452 --- .nvmrc | 2 +- README.md | 2 +- package.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.nvmrc b/.nvmrc index 9a2a0e219c9b..3f430af82b3d 100644 --- a/.nvmrc +++ b/.nvmrc @@ -1 +1 @@ -v20 +v18 diff --git a/README.md b/README.md index 0d802f5a6542..5854622d7b0c 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,7 @@ To learn how to contribute to the MetaMask project itself, visit our [Internal D ## Building locally -- Install [Node.js](https://nodejs.org) version 20 +- Install [Node.js](https://nodejs.org) version 18 - If you are using [nvm](https://github.com/nvm-sh/nvm#installing-and-updating) (recommended) running `nvm use` will automatically choose the right node version for you. - Enable Corepack by executing the command `corepack enable` within the metamask-extension project. Corepack is a utility included with Node.js by default. It manages Yarn on a per-project basis, using the version specified by the `packageManager` property in the project's package.json file. Please note that modern releases of [Yarn](https://yarnpkg.com/getting-started/install) are not intended to be installed globally or via npm. - Duplicate `.metamaskrc.dist` within the root and rename it to `.metamaskrc` by running `cp .metamaskrc{.dist,}`. diff --git a/package.json b/package.json index 18a829eaffaa..33cdd3548046 100644 --- a/package.json +++ b/package.json @@ -586,7 +586,7 @@ "yargs": "^17.0.1" }, "engines": { - "node": ">= 20", + "node": ">= 18", "yarn": "^4.0.2" }, "lavamoat": {