Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
node version v14.21.3
Describe the issue:
I I am not a native English speaker, so I apologize if my expression is not clear.
When I run yarn osd bootstrap according to the opensearch dashboards developer guide, I get the following error
Can someone please tell me how to solve this problem? Relevant Logs or Screenshots:
[xxxx@xxxxxxxx OpenSearch-Dashboards]# yarn osd bootstrap
yarn run v1.22.19
$ scripts/use_node scripts/osd bootstrap
info [opensearch-dashboards] running yarn
warning workspace-aggregator-347a4f9b-4cfe-4abb-a844-9bc05b51bc6a > osd_tp_run_pipeline > @elastic/eui > @types/vfile-message@2.0.0: This is a stub types definition. vfile-message provides its own type definitions, so you do not need this installed.
[3/5] Fetching packages…
error grunt@1.6.1: The engine “node” is incompatible with this module. Expected version “>=16”. Got “14.21.3”
error Found incompatible module.
info Visit yarn install | Yarn for documentation about this command.
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: /root/.nvm/versions/node/v14.21.3/lib/node_modules/yarn/bin/yarn.js install --non-interactive
at makeError (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:25045:11)
at handlePromise (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:23981:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async installInDir (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:23704:3)
at async Project.installDependencies (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:15168:5)
at async Object.run (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:9188:11)
at async runCommand (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:56360:5)
at async Object.run (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:278:3)
error Command failed with exit code 1.
info Visit yarn run | Yarn for documentation about this command.
I ran yarn osd clean and then yarn osd bootstrap again and got the same error.
[xxxx@xxxxxxxx OpenSearch-Dashboards]# yarn osd clean
yarn run v1.22.19
$ scripts/use_node scripts/osd clean
âś” build,data/optimize,built_assets,.eslintcache,.node_binaries,src/plugins/*/target
Done in 0.46s.
[3/5] Fetching packages...
error grunt@1.6.1: The engine "node" is incompatible with this module. Expected version ">=16". Got "14.21.3"
error Found incompatible module.
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
ERROR [bootstrap] failed:
ERROR Error: Command failed with exit code 1: /root/.nvm/versions/node/v14.21.3/lib/node_modules/yarn/bin/yarn.js install --non-interactive
at makeError (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:25045:11)
at handlePromise (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:23981:26)
at processTicksAndRejections (internal/process/task_queues.js:95:5)
at async installInDir (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:23704:3)
at async Project.installDependencies (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:15168:5)
at async Object.run (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:9188:11)
at async runCommand (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:56360:5)
at async Object.run (/root/OpenSearch-Dashboards/packages/osd-pm/dist/index.js:278:3)
error Command failed with exit code 1.
info Visit https://yarnpkg.com/en/docs/cli/run for documentation about this command.
Yes, the yarn.lock file is present and the following entry exists.