I'm trying to setup Kibana to do some plugin development. I'm following the steps outlined in the contributing.md file, but it is failing with the below errors:
eoin.reilly@localhost /c/kibana (6.5)
$ yarnpkg kbn bootstrap
yarn run v1.13.0
$ node scripts/kbn bootstrap
Running [bootstrap] command from [C:\kibana]:
Found [20] projects:
kibana
├── packages
│ ├── eslint-config-kibana (@elastic/eslint-config-kibana)
│ ├── eslint-plugin-kibana-custom (@elastic/eslint-plugin-kibana-custom)
│ ├── kbn-babel-preset (@kbn/babel-preset)
│ ├── kbn-config-schema (@kbn/config-schema)
│ ├── kbn-datemath (@kbn/datemath)
│ ├── kbn-dev-utils (@kbn/dev-utils)
│ ├── kbn-es (@kbn/es)
│ ├── kbn-eslint-import-resolver-kibana (@kbn/eslint-import-resolver-kibana)
│ ├── kbn-eslint-plugin-license-header (@kbn/eslint-plugin-license-header)
│ ├── kbn-i18n (@kbn/i18n)
│ ├── kbn-plugin-generator (@kbn/plugin-generator)
│ ├── kbn-plugin-helpers (@kbn/plugin-helpers)
│ ├── kbn-pm (@kbn/pm)
│ ├── kbn-system-loader (@kbn/system-loader)
│ ├── kbn-test-subj-selector (@kbn/test-subj-selector)
│ ├── kbn-test (@kbn/test)
│ └── kbn-ui-framework (@kbn/ui-framework)
└── x-pack
└── plugins\infra
Running installs in topological order:
Installing dependencies in [@kbn/babel-preset]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/config-schema]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/datemath]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/eslint-import-resolver-kibana]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/eslint-plugin-license-header]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/plugin-generator]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/plugin-helpers]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/pm]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/system-loader]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/test-subj-selector]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [infra]:
warning package.json: No license field
warning infra@7.0.0-alpha1: No license field
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/dev-utils]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/ui-framework]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/es]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/i18n]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [@kbn/test]:
[1/4] Resolving packages...
[2/4] Fetching packages...
Installing dependencies in [x-pack]:
$ node ../preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "@types/node@8.10.21" is incompatible with requested version "@types/node@^9.4.7"
warning Resolution field "@types/node@8.10.21" is incompatible with requested version "@types/node@^9.4.6"
[3/5] Fetching packages...
Installing dependencies in [kibana]:
$ node ./preinstall_check
[1/5] Validating package.json...
[2/5] Resolving packages...
warning Resolution field "@types/node@8.10.21" is incompatible with requested version "@types/node@^9.4.7"
warning Resolution field "@types/node@8.10.21" is incompatible with requested version "@types/node@^9.4.6"
[3/5] Fetching packages...
Installs completed, linking package executables:
[x-pack] plugin-helpers -> ../packages/kbn-plugin-helpers/bin/plugin-helpers.js
Linking executables completed, running `kbn:bootstrap` scripts
@kbn/config-schema: $ yarn build
@kbn/datemath: $ yarn build --quiet
@kbn/system-loader: $ yarn build
@kbn/datemath: $ babel src --out-dir target --copy-files --quiet
@kbn/system-loader: $ tsc
@kbn/config-schema: $ tsc
× @kbn/config-schema: 'tsc' is not recognized as an internal or external command,
× @kbn/system-loader: 'tsc' is not recognized as an internal or external command,
× @kbn/datemath: 'babel' is not recognized as an internal or external command,
× @kbn/config-schema: operable program or batch file.
× @kbn/system-loader: operable program or batch file.
× @kbn/datemath: operable program or batch file.
@kbn/datemath: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@kbn/system-loader: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
× @kbn/datemath: error Command failed with exit code 1.
× @kbn/system-loader: error Command failed with exit code 1.
@kbn/datemath: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
@kbn/system-loader: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
× @kbn/datemath: error Command failed with exit code 1.
× @kbn/system-loader: error Command failed with exit code 1.
[bootstrap] failed:
Error: Command failed: yarn run kbn:bootstrap
'babel' is not recognized as an internal or external command,
operable program or batch file.
error Command failed with exit code 1.
error Command failed with exit code 1.
$ yarn build --quiet
$ babel src --out-dir target --copy-files --quiet
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
at makeError (C:\kibana\packages\kbn-pm\dist\index.js:35534:9)
at Promise.all.then.arr (C:\kibana\packages\kbn-pm\dist\index.js:35639:16)
at <anonymous>
at process._tickCallback (internal/process/next_tick.js:189:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
eoin.reilly@localhost /c/kibana (6.5)
$
I'm running windows 7, using git bash. I'm making the changes on Kibana 6.5.4. I chcked the .node-version
file and installed node 8.14.0 and the latest version of yarn (1.13.0).
Can anyone advise me on what the issue is, and how I can resolve it?