Here is the edited version of the description with the addition of the appropriate version check:
I encountered the same error and fixed it by checking my Node.js version. You can follow these steps to fix this issue:
node -v
nvm
:nvm install <version> # Replace <version> with the appropriate version (e.g. 18)
nvm use <version>
This description gives you more flexibility in choosing the right version needed. Is it okay? 😊