@Dhinesh Sunder
I encountered the same issue. The GitHub official repository for VS Code says that building Node.js requires a version higher than 20. You mentioned installing an older version, 18. That doesn't seem right, does it?