I just bought myself a mac book after using Windows for a long time.
I was trying to work on a MeanJS project that I had been working on. Doing npm install
npm install
I was solved this problem too: Just reinstall node to LTS version by nvm:
nvm install --lts nvm use --lts
Then rm -rf node_modules And npm i
rm -rf node_modules
npm i