How to upgrade nodejs in Open search

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser):
Open search:1.3.6
Server OS:RHEL 8

Describe the issue:
Due to end of the life for Nodejs 10.24.1 I need to upgrade this. Can some one help if we need to upgrade dashboards for this? or do we need to upgrade Open Search as well as dashboards?


Relevant Logs or Screenshots:

OpenSearch 1.3 cannot be run on a version of Node.js other that 10.24.1. You would need to upgrade both OpenSearch and OpenSearch Dashboards to be able to use a non-obsolete version of Node.js.