From cba6808448bc260aeaa2577c5b16ff8fb4f00d98 Mon Sep 17 00:00:00 2001 From: Josh Romero Date: Tue, 3 Oct 2023 13:50:15 -0700 Subject: [PATCH] Update yarn install step from dev guide (#5067) (#5183) * 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 (cherry picked from commit 46d7c2d8c1f3af737697ee984d31ea1cccf85494) Co-authored-by: Matt Provost Co-authored-by: Sean Neumann <1413295+seanneumann@users.noreply.github.com> --- DEVELOPER_GUIDE.md | 8 +++++--- package.json | 1 + 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/DEVELOPER_GUIDE.md b/DEVELOPER_GUIDE.md index d3c8b269c4c..8040c80e791 100644 --- a/DEVELOPER_GUIDE.md +++ b/DEVELOPER_GUIDE.md @@ -63,15 +63,17 @@ If it's the only version of node installed, it will automatically be set to the #### Install `yarn` -Take a look at the [latest Yarn release](https://github.com/yarnpkg/berry/releases/latest), note the version number, and run: +OpenSearch Dashboards is set up using yarn, which can be installed through corepack. To install yarn, run: ```bash +$ # Update corepack to the latest version $ npm i -g corepack -$ corepack prepare yarn@ --activate +$ # 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 e88686a274d..a63c49eefd3 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": [