I followed this Custom Kibana Canvas Elements and tried to create my Kibana canvas plugin. However, it failed with the message below when I run the
yarn kbn bootstrap command.
kibana: $ yarn build:types && node scripts/register_git_hook x-pack: $ node legacy/plugins/canvas/scripts/storybook --clean kibana: $ tsc --p tsconfig.types.json ✖ kibana: Kibana should not be run as root. Use --allow-root to continue. kibana: info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command. ✖ kibana: error Command failed with exit code 1. [bootstrap] failed: Error: Command failed with exit code 1: yarn run kbn:bootstrap at makeError (/root/kibana/packages/kbn-pm/dist/index.js:20332:11) at handlePromise (/root/kibana/packages/kbn-pm/dist/index.js:19270:26) at process._tickCallback (internal/process/next_tick.js:68:7) error Command failed with exit code 1. info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
It seems like the problem is that we cannot run yarn as root.Therefore, I modified my command and ran it again:
yarn kbn bootstrap --allow-root
But, I still got the same error message. Could anyone help me to solve this problem?
My environment is CentOS7.5
Kibana development folder is from the Github and switches to the master branch.
Yarn version is 1.21.0.
Nodejs version is v10.15.2.
If there is anything unclear, please let me know. Thank you!