Npm 有没有办法停止纱线最新版本检查?

Npm 有没有办法停止纱线最新版本检查?,npm,yarnpkg,Npm,Yarnpkg,在我的公司环境中,互联网访问是有限的。纱线似乎总是检查最新版本,导致: [1/4] Resolving packages... success Already up-to-date. Done in 0.27s. info There appears to be trouble with your network connection. Retrying... verbose 24.406830149 Performing "GET" request to "htt

在我的公司环境中,互联网访问是有限的。纱线似乎总是检查最新版本,导致:

[1/4] Resolving packages...
success Already up-to-date.
Done in 0.27s.
info There appears to be trouble with your network connection. Retrying...
verbose 24.406830149 Performing "GET" request to "https://yarnpkg.com/latest-version".
info There appears to be trouble with your network connection. Retrying...
verbose 48.4054138 Performing "GET" request to "https://yarnpkg.com/latest-version".
info There appears to be trouble with your network connection. Retrying...
verbose 72.407100109 Performing "GET" request to "https://yarnpkg.com/latest-version".
info There appears to be trouble with your network connection. Retrying...
verbose 96.409950896 Performing "GET" request to "https://yarnpkg.com/latest-version".

可以看出,这花费了我100秒。

对于纱线v1,您可以执行以下操作:

纱线配置设置禁用自我更新检查为真