gpt4 book ai didi

jenkins - Yarn 忽略代理设置

转载 作者:行者123 更新时间:2023-12-02 14:27:51 25 4
gpt4 key购买 nike

我尝试在 Windows 10 计算机上使用 yarn 和 react native 运行构建作业。以下命令在 jenkins 内部执行,以准备 native Windows 应用程序的实际构建。

yarn config set proxy http://192.109.190.88:8080 
yarn config set https-proxy http://192.109.190.88:8080
yarn add react-native

尽管代理设置正确,但这会导致以下输出(也尝试过“http://192.109.190.88:8080/ ”):

yarn add v0.27.5
[1/4] Resolving packages...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...
warning There appears to be trouble with your network connection. Retrying...

任何关于为什么会发生这种情况的想法都值得赞赏。

最佳答案

yarn 版本 2 需要不同的变量名称:

yarn config set httpProxy http://...
yarn config set httpsProxy http://...

关于jenkins - Yarn 忽略代理设置,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45631761/

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