Hey Stephen,
the reason is that your build runs as root. npm refuses to perform script tasks when run as root, which is necessary for the graylog-web-plugin module to be transpiled properly. Please run your build as a non-privileged user.
Kind regards,
D.