From 46d7c2d8c1f3af737697ee984d31ea1cccf85494 Mon Sep 17 00:00:00 2001 From: Matt Provost Date: Fri, 22 Sep 2023 16:14:00 -0700 Subject: [PATCH] Update yarn install step from dev guide (#5067) * Update yarn install step from dev guide Signed-off-by: Matt Provost * Update the corepack command Signed-off-by: Matt Provost * Update to use corepack install Signed-off-by: Matt Provost * Revise corepack url Signed-off-by: Matt Provost --------- Signed-off-by: Matt Provost --- DEVELOPER_GUIDE.md | 10 +++++++--- package.json | 1 + 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index b084b32bd1f1..24c7851c21eb 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -64,13 +64,17 @@ If it's the only version of node installed, it will automatically be set to the #### Install `yarn` -To install yarn run: +OpenSearch Dashboards is set up using yarn, which can be installed through corepack. To install yarn, run: ```bash -$ npm i -g yarn +$ # Update corepack to the latest version +$ npm i -g corepack + +$ # Install the correct version of yarn +$ corepack install ``` -(See the [Yarn installation documentation](https://yarnpkg.com/getting-started/install) for more information.) +(See the [corepack documentation](https://github.com/nodejs/corepack#-corepack) for more information.) ### Fork and clone OpenSearch Dashboards diff --git a/package.json b/package.json index 0cffb3fcc47e..1e66bbfbd290 100644 --- a/package.json +++ b/package.json @@ -23,6 +23,7 @@ "bugs": { "url": "http://github.com/opensearch-project/OpenSearch-Dashboards/issues" }, + "packageManager": "yarn@1.22.19", "opensearchDashboards": { "clean": { "extraPatterns": [