@meet-bhagwanani, I think you're right. The agent doesn't work with the latest versions of node js. I know it works with version 14, and I think it only works with early versions of 15. It's on my list to fix at some point, but for now, I hope you don't mind downgrading.
EDIT: Correction - I just tried node version 16.13.1 and it worked.