In my case, simply re-running brew install yarn
fixed the problem.
↧
Answer by jack4it for Npm install cannot find module 'semver'
↧
In my case, simply re-running brew install yarn
fixed the problem.