I found this error happens when you run an incompatible version of Node.js.
I was using v24.4.0, and the issue was gone when I switched to v20.11.1.