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": [