# [Install Kibaia on Windows](https://blog.csdn.net/Wei_Yw/article/details/88874565)
1. 在 [github](https://github.com/elastic/kibana) 下載(下載.zip檔會出現 git 沒有紀錄的問題,目前無解)
```git clone https://github.com/elastic/kibana.git```

.zip檔案會出現以下錯誤

:::warning
注意:git clone 時不要只下載分支,可能會出事
:::
2. 下載完後,先利用版控調至需要的版本 ```git checkout v7.8.0``` 並查看 ```kibana/.node-version```

3. 至 [Node.js 官網](https://nodejs.org/zh-cn/download/releases/) 下載對應版本並安裝,安裝完後執行 ```node -v``` 確認是否安裝成功

4. 再來去安裝 [yarn](https://github.com/yarnpkg/yarn/tree/1.21-stable)(本次使用 1.21.1,如果版本不符合執行時會跳出 Warning,將它升級即可),安裝完畢後執行 ```yarn -v``` 確認是否安裝成功。

5. 上述安裝完畢後,再去下載最新版本的 git,並將 **git/bin** 加入環境變數(我這邊是沒有特別去做設定)
6. 去 [elasticsearch 官網](https://www.elastic.co/downloads/elasticsearch)下載最新版本的 es

7. 安裝完畢過後重新開機
8. 再來進入 kibana 的目錄中,先執行 ```git init``` 之後執行
```yarn kbn bootstrap``` 初步安裝就完成了。

- 如果出現以下狀況,請重開機
```
ERROR Error: Command failed with exit code 128: git log -n 1 --pretty=format:%H -- D:\...\kibana
fatal: your current branch 'master' does not have any commits yet"
```