报错内容如下:
PS D:\SdWork\sgqt\uni-app> yarn install
yarn install v1.22.22
info No lockfile found.
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
clear this warning, remove package-lock.json.[1/4] Resolving 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...
error Error: connect ETIMEDOUT 2408:80f0:4100:4013:3::3f7:443
at TCPConnectWrap.afterConnect [as oncomplete] (node:net:1495:16)
info Visit https://yarnpkg.com/en/docs/cli/install for documentation about this command.
解决方案:
禁用IPV6!
过程如下:
我就用以太网举例
下述图片,右键,属性
保存,然后重新下载依赖。
成功。