Kibana Build "ERROR [bootstrap] failed":

I have downloaded kibana 7.10 from Github. I am not able to build kibana. After running,

yarn kbn bootstrap

I am getting below error.

yarn run v1.22.5
$ node scripts/kbn bootstrap
 info [kibana] running yarn

$ node ./preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "schema-utils@1.0.0" is incompatible with requested version "schema-utils@^0.3.0"
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@~3.7.2"
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@^3.3.3333"
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@^3.2.2"
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@^3.0.3"
warning Resolution field "typescript@4.0.2" is incompatible with requested version "typescript@^3.4.5"
success Already up-to-date.

 succ yarn.lock analysis completed without any issues
 succ 23 bootstrap builds are cached
 info [kibana] running [kbn:bootstrap] script
 info [x-pack] running [kbn:bootstrap] script
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: C:\Program Files (x86)\Yarn\bin\yarn.js run kbn:bootstrap
      Native extraction module not loaded, msgpackr will still run, but with decreased performance. No native build was found for platform=win32 arch=ia32 runtime=node abi=64 uv=1 libc=glibc node=10.22.1

      C:\Users\dhruv\Desktop\ELK-Github\kibana\node_modules\node-gyp-build\index.js:59
        throw new Error('No native build was found for ' + target + '\n    loaded from: ' + dir + '\n')
              ^
      Error: No native build was found for platform=win32 arch=ia32 runtime=node abi=64 uv=1 libc=glibc node=10.22.1
          loaded from: C:\Users\dhruv\Desktop\ELK-Github\kibana\node_modules\lmdb-store

          at Function.load.path (C:\Users\dhruv\Desktop\ELK-Github\kibana\node_modules\node-gyp-build\index.js:59:9)
          at load (C:\Users\dhruv\Desktop\ELK-Github\kibana\node_modules\node-gyp-build\index.js:21:30)
          at Object.<anonymous> (C:\Users\dhruv\Desktop\ELK-Github\kibana\node_modules\lmdb-store\index.js:7:49)
          at Module._compile (internal/modules/cjs/loader.js:778:30)
          at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
          at Module.load (internal/modules/cjs/loader.js:653:32)
          at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
          at Function.Module._load (internal/modules/cjs/loader.js:585:3)
          at Module.require (internal/modules/cjs/loader.js:692:17)
          at Module.Hook._require.Module.require (C:\Users\dhruv\Desktop\ELK-Github\kibana\node_modules\require-in-the-middle\index.js:80:39)
      error Command failed with exit code 1.
      $ node scripts/build_ts_refs && node scripts/register_git_hook
      info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
          at makeError (C:\Users\dhruv\Desktop\ELK-Github\kibana\packages\kbn-pm\dist\index.js:25140:11)
          at handlePromise (C:\Users\dhruv\Desktop\ELK-Github\kibana\packages\kbn-pm\dist\index.js:24075:26)
          at process._tickCallback (internal/process/next_tick.js:68:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Please help me with above error. Let me know if you need more information.

Hey @Dhruvil_Doshi, when I see arch=ia32 it makes me thing you might be using a 32-bit processor. Is that the case?

Hello @spalger,
I have checked my system is using 64 bit processor.

Interesting, are there any other errors you received previously but fixed? We have several people who develop Kibana full-time on Windows and I just verified that I'm able to bootstrap the 7.10 branch on Windows 10 without issue.

My setup might differ from yours:

  • git installed via installer from git-scm.com
  • node installed via Chocolatey, running choco install nodejs --version 10.22.1 in an admin powershell
  • running yarn kbn bootstrap in a Git Bash shell. We use several bash commands in our repo so Git Bash is required.

Would you mind attempting using a similar setup and see if that works?