I am trying to build Kibana 6.6 and see spawn fpm ENOENT
error.
I am running command yarn build
without any options.
Below is the error.
info [ kibana ] Creating deb package
│ debg calling fpm with args: [ '--force',
│ '-t',
│ 'deb',
│ '--package',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/target/NAME-6.6.3-SNAPSHOT-ARCH.TYPE',
│ '-s',
│ 'dir',
│ '--name',
│ 'kibana',
│ '--description',
│ 'Explore and visualize your Elasticsearch data',
│ '--version',
│ '6.6.3-SNAPSHOT',
│ '--url',
│ 'https://www.elastic.co',
│ '--vendor',
│ 'Elasticsearch, Inc.',
│ '--maintainer',
│ 'Kibana Team info@elastic.co',
│ '--license',
│ 'Elastic-License',
│ '--conflicts',
│ 'kibana-oss',
│ '--after-install',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/post_install.sh',
│ '--before-install',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh',
│ '--before-remove',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh',
│ '--after-remove',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh',
│ '--config-files',
│ '/etc/kibana/kibana.yml',
│ '--template-value',
│ 'user=kibana',
│ '--template-value',
│ 'group=kibana',
│ '--template-value',
│ 'optimizeDir=/usr/share/kibana/optimize',
│ '--template-value',
│ 'configDir=/etc/kibana',
│ '--template-value',
│ 'pluginsDir=/usr/share/kibana/plugins',
│ '--template-value',
│ 'dataDir=/var/lib/kibana',
│ '--exclude',
│ 'usr/share/kibana/config',
│ '--exclude',
│ 'usr/share/kibana/data',
│ '--architecture',
│ 'amd64',
│ '--deb-priority',
│ 'optional',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/build/default/kibana-6.6.3-SNAPSHOT-linux-x86_64/=/usr/share/kibana/',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/build/default/kibana-6.6.3-SNAPSHOT-linux-x86_64/config/=/etc/kibana/',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/build/default/kibana-6.6.3-SNAPSHOT-linux-x86_64/data/=/var/lib/kibana/',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/service_templates/sysv/etc/=/etc/',
│ '/Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/service_templates/systemd/etc/=/etc/' ]
│ info $ fpm --force -t deb --package /Users/j0l03mx/repo/kibana/kibana-ext/target/NAME-6.6.3-SNAPSHOT-ARCH.TYPE -s dir --name kibana --description Explore and visualize your Elasticsearch data --version 6.6.3-SNAPSHOT --url https://www.elastic.co --vendor Elasticsearch, Inc. --maintainer Kibana Team info@elastic.co --license Elastic-License --conflicts kibana-oss --after-install /Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/post_install.sh --before-install /Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/pre_install.sh --before-remove /Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/pre_remove.sh --after-remove /Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/package_scripts/post_remove.sh --config-files /etc/kibana/kibana.yml --template-value user=kibana --template-value group=kibana --template-value optimizeDir=/usr/share/kibana/optimize --template-value configDir=/etc/kibana --template-value pluginsDir=/usr/share/kibana/plugins --template-value dataDir=/var/lib/kibana --exclude usr/share/kibana/config --exclude usr/share/kibana/data --architecture amd64 --deb-priority optional /Users/j0l03mx/repo/kibana/kibana-ext/build/default/kibana-6.6.3-SNAPSHOT-linux-x86_64/=/usr/share/kibana/ /Users/j0l03mx/repo/kibana/kibana-ext/build/default/kibana-6.6.3-SNAPSHOT-linux-x86_64/config/=/etc/kibana/ /Users/j0l03mx/repo/kibana/kibana-ext/build/default/kibana-6.6.3-SNAPSHOT-linux-x86_64/data/=/var/lib/kibana/ /Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/service_templates/sysv/etc/=/etc/ /Users/j0l03mx/repo/kibana/kibana-ext/src/dev/build/tasks/os_packages/service_templates/systemd/etc/=/etc/
│ERROR failure
│ERROR Error: spawn fpm ENOENT
│ at Process.ChildProcess._handle.onexit (internal/child_process.js:240:19)
│ at onErrorNT (internal/child_process.js:415:16)
│ at process._tickCallback (internal/process/next_tick.js:63:19)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.