I just wanna run Kibana 8.6.1. But I got this error.
- Node version : 16.18.1
- yarn version : 1.22.19
ubuntu@raspberrypi:/usr/local/kibana$ bin/kibana
node:internal/modules/cjs/loader:988
throw err;
^
Error: Cannot find module '@kbn/apm-config-loader'
Require stack:
- /usr/local/kibana/src/cli/apm.js
- /usr/local/kibana/src/cli/dist.js
at Function.Module._resolveFilename (node:internal/modules/cjs/loader:985:15)
at Function.Module._load (node:internal/modules/cjs/loader:833:27)
at Module.require (node:internal/modules/cjs/loader:1057:19)
at require (node:internal/modules/cjs/helpers:103:18)
at Object.<anonymous> (/usr/local/kibana/src/cli/apm.js:20:5)
at Module._compile (node:internal/modules/cjs/loader:1155:14)
at Object.Module._extensions..js (node:internal/modules/cjs/loader:1209:10)
at Module.load (node:internal/modules/cjs/loader:1033:32)
at Function.Module._load (node:internal/modules/cjs/loader:868:12)
at Module.require (node:internal/modules/cjs/loader:1057:19) {
code: 'MODULE_NOT_FOUND',
requireStack: [
'/usr/local/kibana/src/cli/apm.js',
'/usr/local/kibana/src/cli/dist.js'
]
}
Already tried
-
Reinstall all packages -> Not work
rm -rf node_modules rm -f package-lock.json yarn cache clean yarn install
-
Add ~/.bashrc -> Not work
export NODE_PATH=/usr/local/kibana PATH=$PATH:$NODE_PATH/node_modules:$NODE_PATH/node_modules/.bin
-
yarn kbn bootstrap -> GOT ERROR
ubuntu@raspberrypi:/usr/local/kibana$ yarn kbn bootstrap yarn run v1.22.19 $ /usr/local/kibana/node_modules/.bin/kbn bootstrap error An unexpected error occurred: "spawn E2BIG". info If you think this is a bug, please open a bug report with the information provided in "/usr/local/kibana/yarn-error.log". info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
I think `E2BIG` is caused because of long argument list. However, I don't know what can I do now.
I just read that GitHub, but I am the NEWBIE of Node.