Skip to content

Commit

Permalink
Update yarn install step from dev guide (#5067) (#5183)
Browse files Browse the repository at this point in the history
* Update yarn install step from dev guide

Signed-off-by: Matt Provost <provomat@amazon.com>

* Update the corepack command

Signed-off-by: Matt Provost <provomat@amazon.com>

* Update to use corepack install

Signed-off-by: Matt Provost <provomat@amazon.com>

* Revise corepack url

Signed-off-by: Matt Provost <provomat@amazon.com>

---------

Signed-off-by: Matt Provost <provomat@amazon.com>
(cherry picked from commit 46d7c2d)

Co-authored-by: Matt Provost <provomat@amazon.com>
Co-authored-by: Sean Neumann <1413295+seanneumann@users.noreply.github.com>
  • Loading branch information
3 people committed Oct 3, 2023
1 parent 77f2a5a commit cba6808
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
8 changes: 5 additions & 3 deletions DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -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@<version> --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

Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
"bugs": {
"url": "http://github.com/opensearch-project/OpenSearch-Dashboards/issues"
},
"packageManager": "yarn@1.22.19",
"opensearchDashboards": {
"clean": {
"extraPatterns": [
Expand Down

0 comments on commit cba6808

Please sign in to comment.