There is the similar answer.
Basically LTS(long term supported) versions are in play. but don't use latest(when I am writing it is 22.13.1). Because I tried and it failed to remove the issue.
I resolved my issue as in below thread:
$nvm install 20.10.0
$nvm use 20.10.0
punycode is deprecated in npm - what should I replace it with?