gpt4 book ai didi

npm - 有没有办法停止 yarn 最新版本检查?

转载 作者:行者123 更新时间:2023-12-02 02:33:28 29 4
gpt4 key购买 nike

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

[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 秒。

最佳答案

对于 yarn v1 你可以这样做:

yarn config set disable-self-update-check true

https://classic.yarnpkg.com/en/docs/yarnrc#toc-disable-self-update-check

关于npm - 有没有办法停止 yarn 最新版本检查?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/64690376/

29 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com