Kibana Development Environment error

kibana 6.5.4
yarn kbn bootstrap error.

@kbn/config-schema: $ yarn build
@kbn/datemath: $ yarn build --quiet
@kbn/system-loader: $ yarn build
@kbn/config-schema: $ tsc
@kbn/datemath: $ babel src --out-dir target --copy-files --quiet
@kbn/system-loader: $ tsc
@kbn/system-loader: ../../node_modules/@types/hapi-latest/index.d.ts(2108,36): error TS2314: Generic type 'Policy<T, O>' requires 2 type argument(s).
@kbn/system-loader: ../../node_modules/@types/hapi-latest/index.d.ts(2637,44): error TS2314: Generic type 'PolicyOptions<T>' requires 1 type argument(s).
@kbn/system-loader: ../../node_modules/@types/hapi-latest/index.d.ts(2696,45): error TS2314: Generic type 'PolicyOptions<T>' requires 1 type argument(s).
@kbn/system-loader: ../../node_modules/@types/hapi-latest/index.d.ts(2776,13): error TS2314: Generic type 'EnginePrototype<T>' requires 1 type argument(s).
@kbn/system-loader: ../../node_modules/@types/react-redux/index.d.ts(97,64): error TS2694: Namespace 'global.JSX' has no exported member 'LibraryManagedAttributes'.
@kbn/system-loader: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
× @kbn/system-loader: error Command failed with exit code 2.
@kbn/system-loader: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
× @kbn/system-loader: error Command failed with exit code 1.

[bootstrap] failed:

Error: Command failed: yarn run kbn:bootstrap
error Command failed with exit code 2.
error Command failed with exit code 1.

$ yarn build
$ tsc
../../node_modules/@types/hapi-latest/index.d.ts(2108,36): error TS2314: Generic type 'Policy<T, O>' requires 2 type argument(s).
../../node_modules/@types/hapi-latest/index.d.ts(2637,44): error TS2314: Generic type 'PolicyOptions<T>' requires 1 type argument(s).
../../node_modules/@types/hapi-latest/index.d.ts(2696,45): error TS2314: Generic type 'PolicyOptions<T>' requires 1 type argument(s).
../../node_modules/@types/hapi-latest/index.d.ts(2776,13): error TS2314: Generic type 'EnginePrototype<T>' requires 1 type argument(s).
../../node_modules/@types/react-redux/index.d.ts(97,64): error TS2694: Namespace 'global.JSX' has no exported member 'LibraryManagedAttributes'.
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 (E:\github\kibana\kibana\packages\kbn-pm\dist\index.js:35534:9)
    at Promise.all.then.arr (E:\github\kibana\kibana\packages\kbn-pm\dist\index.js:35639:16)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:188:7)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.

Can you try running yarn kbn clean before running yarn kbn bootstrap as see if the issue still occurs?

yeah,I have a try,but no effect. the same problem.

I'm not able to reproduce the error on the v6.5.4 branch. It sounds like an upstream dependency issue. Make sure you didn't change any of the dependency versions in package.json, specifically the @types/* modules listed in the error.

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...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
error An unexpected error occurred: "https://registry.yarnpkg.com/@elastic/eui/-/eui-4.5.1-logos-tooltip-betabadge.tgz: tunneling socket could not be established, statusCode=407".
info If you think this is a bug, please open a bug report with the information provided in "E:\\github\\kibana\\kibana\\x-pack\\yarn-error.log".
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.

[bootstrap] failed:

Error: Command failed: yarn install --check-files --non-interactive --mutex file
    at makeError (E:\github\kibana\kibana\packages\kbn-pm\dist\index.js:35534:9)
    at Promise.all.then.arr (E:\github\kibana\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.

any good way?

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.