I also had this, after yesterday's brew install yarn . At least before that, everything was fine.
I ran rm -rf node_modules and tried to reinstall, but the npm command did not work.
In the end, I took a fairly simple step to reinstall Node through the official Node installer for Mac OS X.
https://nodejs.org/en/download/
Now everything is all right. Just went back to the directory, launched npm install , and it did the trick.
raffjones Mar 20 '17 at 10:43 on 2017-03-20 10:43
source share