I updated Node, NPM, all my global node modules, ran brew update
, reinstalled xcode: sudo rm -rf /Library/Developer/CommandLineTools
then xcode-select --install
and it seems to be working again.
Same error shows up in a freshly made Vue project created with vue create as well.
created a fresh vue project using @vue/cli and I was able to run npm run serve
. Hopefully this helps for anyone else facing this issue.
CLICK HERE to find out more related problems solutions.