yarn安装依赖报错
报错1:
error Command failed. Exit code: 128 ---错误码
报错2:
error An unexpected error occurred: "https://registry.npmjs.org/eventemitter3/-/eventemitter3-2.0.3.tgz: connect ETIMEDOUT 104.16.26.35:443".
以上问题都可以通过下面方式解决
原因 缓存导致
1 yarn cache clean
2 rm yarn.lock
3 rm -rf node_modules/
4 yarn