From 25114997c474bfc609a80bc733b909a4c6717f62 Mon Sep 17 00:00:00 2001 From: Gauthier Petetin Date: Tue, 5 Sep 2023 13:02:42 -0300 Subject: [PATCH] fix(readme): yarn v3 no longer required (#20713) Modern releases of yarn are not intended to be installed globally or via npm. The good practice now is to use Corepack, a utility included with Node.js by default, that manages Yarn on a per-project basis, based on the version specified by the packageManager property in the project's package.json file. --- README.md | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/README.md b/README.md index fcd7cadd7..c817f3c57 100644 --- a/README.md +++ b/README.md @@ -16,9 +16,7 @@ To learn how to contribute to the MetaMask project itself, visit our [Internal D - 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. -- Install [Yarn v3](https://yarnpkg.com/getting-started/install) - - ONLY follow the steps in the "Install Corepack" and "Updating the global Yarn version" sections - - DO NOT take any of the steps in the "Initializing your project", "Updating to the latest versions" or "Installing the latest build fresh from master" sections. These steps could result in your repo being reset or installing the wrong yarn version, which can break your build. +- 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` - Replace the `INFURA_PROJECT_ID` value with your own personal [Infura Project ID](https://infura.io/docs). - If debugging MetaMetrics, you'll need to add a value for `SEGMENT_WRITE_KEY` [Segment write key](https://segment.com/docs/connections/find-writekey/), see [Developing on MetaMask - Segment](./development/README.md#segment).