使用yarn安装typescript时报错
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 config set registry https://registry.npm.taobao.org/
- rm -rf /node_modules
- yarn install --no-bin-links
确认没有错误再往下执行,不然就还得排查错误。
另外,有时候 rm -rf node_modules,重新 yarn install 就可以解决问题,