There are a few (non-npm-controlled) dependencies needed to build OS packages for Kibana. They are listed over here. Could you double check that you have them all installed?
Also, in case you aren't interested in OS packages, you can run npm run build -- --skip-os-packages. That will only produce the .tar.gz and .zip builds.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.