Not able to set up OSD in mac machine to create custom plugin

Versions (relevant - OpenSearch/Dashboard/Server OS/Browser): OpenSearch 3.1.0,2.17.0,2.19.0

Describe the issue: I am using Mac machine Silicon M2/M3 type.I am planning to create custom plugin, which will be used to access S3 bucket for file and display the file content in the opensearch dashboard on click of single cell.I am not able to run successful yard osd bootstrap command, when i checkout the git project. Only yarn install is succeeding.Tries multiple versions like 2.17 .0,2.17.0 and 3.1.0 as well.but it’s fails for multiple reasons.

What is the preferred approach to create plugin which i mentioned above in mac machine

Configuration: Getting Typescript version mismatch.

Relevant Logs or Screenshots: