yarn config list 查看yarn的配置清单里的strict-ssl:
yarn config list
yarn config set strict-ssl false将其改为 false
yarn config set strict-ssl false
再次运行安装命令即可顺利安装