There seems to be multiple solutions online -
1. Update all packages
npm install -g npm-check-updates
ncu -u
npm install
2. Use a different terminal or ensure your current terminal is updated. Some reckon Powershell 7 did it or going back to cmd over git bash also did the trick.
Have a look at
THIS LINK from Stack Overflow for a possible solution.