Skip to content

Commit

Permalink
Update yarn install step from dev guide (#5067) (#5184)
Browse files Browse the repository at this point in the history
* Update yarn install step from dev guide
* Update the corepack command
* Update to use corepack install
* Revise corepack url

---------

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

Co-authored-by: Matt Provost <provomat@amazon.com>
  • Loading branch information
joshuarrrr and BSFishy authored Oct 3, 2023
1 parent 329fa72 commit 9c54856
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
8 changes: 7 additions & 1 deletion DEVELOPER_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -63,11 +63,17 @@ If it's the only version of node installed, it will automatically be set to the

#### Install `yarn`

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

$ # 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 9c54856

Please sign in to comment.