PS D:\Git\king-178xyw> yarn add react-transition-group
yarn add v1.22.22
warning package-lock.json found. Your project contains lock files generated by tools other than Yarn. It is advised not to mix package managers in order to avoid resolution inconsistencies caused by unsynchronized lock files. To cle
ar this warning, remove package-lock.json.
[1/4] Resolving packages...
[2/4] Fetching packages...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
在使用yarn add 的时候一直抛
info There appears to be trouble with your network connection. Retrying...
解决:不能用yarn install,要用:npm install
因为里面设定了安装方式,有package.json.lock文件,如果用yarn install就要把 lock这个文件删除了
使用npm isntall 就正常安装了