代理设置如下:
➜ ~ env | grep -i proxy
no_proxy=localhost,127.0.0.1,localaddress,.localdomain.com
NO_PROXY=localhost,127.0.0.1,localaddress,.localdomain.com
https_proxy=http://127.0.0.1:7890
http_proxy=http://127.0.0.1:7890
all_proxy=socks5://127.0.0.1:7890
测试命令:
$ yarn add react-native-geolocation-service
yarn add v1.22.17
[1/4] 🔍 Resolving packages...
info There appears to be trouble with your network connection. Retrying...
[2/4] 🚚 Fetching packages...
[3/4] 🔗 Linking dependencies...
info All dependencies
└─ react-native-geolocation-service@5.3.0-beta.4
✨ Done in 5.22s.
info There appears to be trouble with your network connection. Retrying...
info There appears to be trouble with your network connection. Retrying...
任何使用 yarn add
的命令都会先提示一下网络问题重试, 然后才能进行安装, 安装完成后还会提示两三次网络问题. 最后才完成.
虽然不影响安装, 但每次这样会浪费点时间.
这是一个专为移动设备优化的页面(即为了让你能够在 Google 搜索结果里秒开这个页面),如果你希望参与 V2EX 社区的讨论,你可以继续到 V2EX 上打开本讨论主题的完整版本。
V2EX 是创意工作者们的社区,是一个分享自己正在做的有趣事物、交流想法,可以遇见新朋友甚至新机会的地方。
V2EX is a community of developers, designers and creative people.