Если вы используете yarn версии например 4.2.2, то мне помогло yarn config set enableStrictSsl false
yarn config set enableStrictSsl false