# Getting error while bootstrapping opensearch dashboard in Windows

**URL:** <https://forum.opensearch.org/t/getting-error-while-bootstrapping-opensearch-dashboard-in-windows/9308>\
**Category:** Build\
**Created:** [April 21, 2022, 4:27am UTC](https://forum.opensearch.org/t/getting-error-while-bootstrapping-opensearch-dashboard-in-windows/9308 "2022-04-21T04:27:15Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![shubtiwa](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/shubtiwa/32/3221_2.png) [@shubtiwa](https://forum.opensearch.org/u/shubtiwa)\
**Post date:** [April 21, 2022, 4:27am UTC](https://forum.opensearch.org/t/getting-error-while-bootstrapping-opensearch-dashboard-in-windows/9308/1 "2022-04-21T04:27:15Z")

</div>

I am getting below error while executing “yarn osd bootstrap” to install dependencies.

```auto
PS D:\opensearch\OpenSearch-Dashboards> yarn osd bootstrap
yarn run v1.22.18
$ node scripts/osd bootstrap
 info [opensearch-dashboards] running yarn

$ node ./preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@~4.5.2"
success Already up-to-date.

 succ yarn.lock analysis completed without any issues
 succ 10 bootstrap builds are cached
 info [@osd/i18n] running [osd:bootstrap] script
 info [@osd/monaco] running [osd:bootstrap] script
 info [@osd/opensearch-archiver] running [osd:bootstrap] script
 info [@osd/opensearch] running [osd:bootstrap] script
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: C:\Users\st\AppData\Roaming\nvm\v14.18.2\node_modules\yarn\bin\yarn.js run osd:bootstrap
      'rm' is not recognized as an internal or external command,
      operable program or batch file.
      error Command failed with exit code 1.
      $ rm -rf target && tsc
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
          at makeError (D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:25150:11)
          at handlePromise (D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:24085:26)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:9051:9
          at async scheduleItem (D:\opensearch\OpenSearch-Dashboards\packages\osd-pm\dist\index.js:10938:9)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

```

So what can I do in windows to successfully run “rm -rf target && tsc” ?

---

<div class="post-metadata">

**Author:** ![ralph](https://sea1.discourse-cdn.com/flex019/user_avatar/forum.opensearch.org/ralph/32/1194_2.png) [@ralph](https://forum.opensearch.org/u/ralph)\
**Post date:** [April 21, 2022, 6:38am UTC](https://forum.opensearch.org/t/getting-error-while-bootstrapping-opensearch-dashboard-in-windows/9308/2 "2022-04-21T06:38:33Z")

</div>

AFAIK windows isn’t officially supported yet, at least this ticket is still open: [[Meta] OpenSearch / OpenSearch Dashboards - Windows distribution (X64) · Issue #33 · opensearch-project/opensearch-build · GitHub](https://github.com/opensearch-project/opensearch-build/issues/33)

though maybe someone has a workaround for you…
