Skip to content

kibana-keystore create Cannot find module '@kbn/optimizer' #79470

@LeeDr

Description

@LeeDr

Kibana version: master 8.0.0-SNAPSHOT

Elasticsearch version: master 8.0.0-SNAPSHOT

Server OS version: Ubuntu 16.04

Browser version: n/a

Browser OS version: n/a

Original install method (e.g. download page, yum, from source, etc.): tar.gz default dist

Describe the bug: kibana-keystore create fails Error: Cannot find module '@kbn/optimizer'

Steps to reproduce:

  1. download default distribution of master kibana tar.gz
  2. extract the files
  3. run kibana-keystore create

Expected behavior: Should successfully create the keystore file

Screenshots (if relevant):

Errors in browser console (if relevant):

Provide logs and/or server output (if relevant):

00:41:15.708 ++ /home/vagrant/kibana/bin/kibana-keystore create
00:41:15.709 Error: Cannot find module '@kbn/optimizer'
00:41:15.709     at Function.Module._resolveFilename (internal/modules/cjs/loader.js:636:15)
00:41:15.709     at Module.Hook._require.Module.require (/home/vagrant/kibana/node_modules/require-in-the-middle/index.js:61:29)
00:41:15.709     at require (internal/modules/cjs/helpers.js:25:18)
00:41:15.709     at Object.<anonymous> (/home/vagrant/kibana/src/setup_node_env/index.js:23:1)
00:41:15.710     at Module._compile (internal/modules/cjs/loader.js:778:30)
00:41:15.710     at Object.Module._extensions..js (internal/modules/cjs/loader.js:789:10)
00:41:15.710     at Module.load (internal/modules/cjs/loader.js:653:32)
00:41:15.710     at tryModuleLoad (internal/modules/cjs/loader.js:593:12)
00:41:15.711     at Function.Module._load (internal/modules/cjs/loader.js:585:3)
00:41:15.711     at Module.require (internal/modules/cjs/loader.js:692:17)

(this is actually from a different install, but shows no @kbn/optimizer folder);

vagrant@packer-virtualbox-iso-1594562612:~$ ls -l /usr/share/kibana/node_modules/@kbn/
total 72
drwxrwxr-x 5 root root 4096 Oct  4 18:48 ace
drwxrwxr-x 4 root root 4096 Oct  4 18:48 analytics
drwxrwxr-x 4 root root 4096 Oct  4 18:48 apm-config-loader
drwxrwxr-x 4 root root 4096 Oct  4 18:48 config
drwxrwxr-x 3 root root 4096 Oct  4 18:48 config-schema
drwxrwxr-x 6 root root 4096 Oct  4 18:48 dev-utils
drwxrwxr-x 7 root root 4096 Oct  4 18:48 i18n
drwxrwxr-x 7 root root 4096 Oct  4 18:48 interpreter
drwxrwxr-x 3 root root 4096 Oct  4 18:48 logging
drwxrwxr-x 5 root root 4096 Oct  4 18:48 monaco
drwxrwxr-x 4 root root 4096 Oct  4 18:48 pm
drwxrwxr-x 3 root root 4096 Oct  4 18:48 std
drwxrwxr-x 4 root root 4096 Oct  4 18:48 telemetry-tools
drwxrwxr-x 2 root root 4096 Oct  4 18:48 test-subj-selector
drwxrwxr-x 5 root root 4096 Oct  4 18:48 ui-framework
drwxrwxr-x 6 root root 4096 Oct  4 18:48 ui-shared-deps
drwxrwxr-x 3 root root 4096 Oct  4 18:48 utility-types
drwxrwxr-x 3 root root 4096 Oct  4 18:48 utils

Any additional context: This worked at least up until the master snapshot on October 1st.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions