To solve this issue, you must be using either Node 18 or 20 as mentioned in the Backstage documentation.
nvm use 18