# Kibana Development Environment error

**URL:** <https://discuss.elastic.co/t/kibana-development-environment-error/162911>\
**Category:** Kibana\
**Created:** [January 4, 2019, 8:20am UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911 "2019-01-04T08:20:48Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![TrumanDu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trumandu/32/35182_2.png) [@TrumanDu](https://discuss.elastic.co/u/TrumanDu)\
**Post date:** [January 4, 2019, 8:20am UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911/1 "2019-01-04T08:20:48Z")

</div>

kibana 6.5.4  
yarn kbn bootstrap error.

```auto
@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.

```

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [January 4, 2019, 10:43pm UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911/2 "2019-01-04T22:43:09Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![TrumanDu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trumandu/32/35182_2.png) [@TrumanDu](https://discuss.elastic.co/u/TrumanDu)\
**Post date:** [January 5, 2019, 1:03am UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911/3 "2019-01-05T01:03:51Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![nickpeihl](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/nickpeihl/32/112622_2.png) [@nickpeihl](https://discuss.elastic.co/u/nickpeihl)\
**Post date:** [January 5, 2019, 1:50am UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911/4 "2019-01-05T01:50:57Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![TrumanDu](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/trumandu/32/35182_2.png) [@TrumanDu](https://discuss.elastic.co/u/TrumanDu)\
**Post date:** [January 5, 2019, 12:49pm UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911/5 "2019-01-05T12:49:24Z")

</div>

```auto
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?

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/elastic/original/3X/1/a/1ac57faf039f6b580b3f104ef42a2a89e41014de.png) [@system](https://discuss.elastic.co/u/system)\
**Post date:** [February 2, 2019, 12:49pm UTC](https://discuss.elastic.co/t/kibana-development-environment-error/162911/6 "2019-02-02T12:49:25Z")

</div>

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