# Kibana \[6.7.2\] Cannot find module 'babel-register' when building with Jenkins

**URL:** <https://discuss.elastic.co/t/kibana-6-7-2-cannot-find-module-babel-register-when-building-with-jenkins/181265>\
**Category:** Kibana\
**Created:** [May 15, 2019, 7:51pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-cannot-find-module-babel-register-when-building-with-jenkins/181265 "2019-05-15T19:51:54Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![swood1](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@swood1](https://discuss.elastic.co/u/swood1)\
**Post date:** [May 15, 2019, 7:51pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-cannot-find-module-babel-register-when-building-with-jenkins/181265/1 "2019-05-15T19:51:54Z")

</div>

Hello,

I am building Kibana 6.7.2 from source via Jenkinsfile. OS is Windows 10.

The build process executes the following tasks in the given order:

1. set node version to 10.15.2
2. yarn kbn bootstrap
3. yarn build --skip-os-packages --oss --skip-archives
4. cd into build/oss/my\_kibana\_build and yarn install
5. zip build in build/oss/my\_kibana\_build

When I download my build, and try to run bin/kibana.bat and immediately the Cannot find moudle 'babel-register' error is thrown.

I've read this is due to corrupt version download, but I have repeated the build multiple times and get the same error every time.

Is it possible the build process is corrupting the .zip it outputs? Should I be using the files that are output in build/oss to zip from, or is this the wrong destination?

When I execute these steps manually (i.e. not through the Jenkins pipeline), kibana will spin up without error

Thanks

---

<div class="post-metadata">

**Author:** ![tylersmalley](https://sea2.discourse-cdn.com/elastic/user_avatar/discuss.elastic.co/tylersmalley/32/8833_2.png) [@tylersmalley](https://discuss.elastic.co/u/tylersmalley)\
**Post date:** [May 16, 2019, 4:01pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-cannot-find-module-babel-register-when-building-with-jenkins/181265/2 "2019-05-16T16:01:03Z")

</div>

I think you might be using an intermediate build directory - I would highly recommend allowing the build to create the archives and using those file from the target directory.

1. set node version to `cat .node-version`
2. yarn kbn bootstrap
3. yarn build --skip-os-packages --oss
4. grab archives from `target` directory

---

<div class="post-metadata">

**Author:** ![swood1](https://avatars.discourse-cdn.com/v4/letter/s/dfb087/32.png) [@swood1](https://discuss.elastic.co/u/swood1)\
**Post date:** [May 16, 2019, 4:03pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-cannot-find-module-babel-register-when-building-with-jenkins/181265/3 "2019-05-16T16:03:50Z")

</div>

Thanks Tyler, I have been playing around with it and I think you're correct.

---

<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:** [June 13, 2019, 4:03pm UTC](https://discuss.elastic.co/t/kibana-6-7-2-cannot-find-module-babel-register-when-building-with-jenkins/181265/4 "2019-06-13T16:03:56Z")

</div>

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