Created by: gaearon
This is the only reliable way I could find to detect https://github.com/facebookincubator/create-react-app/issues/3326 and show a nice message.
Yarn is also affected by this issue, but running it with explicit --cwd
flag fixes it. So we'll just let Yarn-powered installs run normally.