【发布时间】:2019-12-30 05:48:20
【问题描述】:
我在离线计算机上运行yarn,当我运行yarn add xxx时很慢,因为它从yarnpkg.com读取yarn版本。如何禁止这个。
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ typescript@3.7.4
info All dependencies
└─ typescript@3.7.4
Done in 4.82s.
info There appears to be trouble with your network connection. Retrying...
verbose 23.339149829 Performing "GET" request to "https://yarnpkg.com/latest-version".
info There appears to be trouble with your network connection. Retrying...
verbose 46.36636041 Performing "GET" request to "https://yarnpkg.com/latest-version".
info There appears to be trouble with your network connection. Retrying...
verbose 69.392200426 Performing "GET" request to "https://yarnpkg.com/latest-version".
info There appears to be trouble with your network connection. Retrying...
verbose 92.418733958 Performing "GET" request to "https://yarnpkg.com/latest-version".
【问题讨论】: