Windows环境下 kibana7.14源码编译开发

1.使用git命令clone所需要的kibana

git clone -b v7.14.0 https://github.com/****/kibana.git

2.使用yarn下载依赖

 yarn kbn bootstrap

报错解决:

错误一

出现上述错误是因为:node版本不对,要求使用的node版本是14.17.3,而本地安装的node版本是14.17.5,修改node版本为14.17.3即可。

注意:windows版本下修改node版本推荐直接下载对应的.exe文件,NVM适用于linux系统

错误二

ERROR [bootstrap] failed:
ERROR Error: [bazel_tools] an error occurred when installing the Bazel tools. Please make sure you have access to npm globally installed modules on your $PATH
          at installBazelTools (F:\kibana\kibana\packages\kbn-pm\dist\index.js:48429:13)
          at processTicksAndRejections (internal/process/task_queues.js:95:5)
          at async Object.run (F:\kibana\kibana\packages\kbn-pm\dist\index.js:8937:5)
          at async runCommand (F:\kibana\kibana\packages\kbn-pm\dist\index.js:59803:5)
          at async Module.run (F:\kibana\kibana\packages\kbn-pm\dist\index.js:242:3)
error Command failed with exit code 1.

 解决方法

yarn add @bazel/[email protected]

先手动把对应的包下载下来

你可能感兴趣的:(mongodb,Linux,docker,windows,git,kibana)