I just came back to work on a React project after working in the Rails environment and found that I cannot run any NPM commands in my Mac terminal. I\'ve tried all the remedies
I had an issue after upgrade my mac. I tried different solutions available on stack overflow and nothing work for me.
This solution works for me.
brew uninstall --force node
brew install node
First point remove all node versions if available.
Done. Enjoy coding.