Hi there if someone is still facing the issue. Simply check the node version you are one node -v
.
I got this accidentally when I forgot to change my terminal node version which I used as 16.x.x.
for my another project and for this project it was supposed to be 20.x.x