NativeScript / NativeScript/nativescript-cli

MacOS setup does not work past homebrew install

未关闭
#4,910 3 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看

还没有人认领这个 Issue。

needs more info question
主要语言
JavaScript
星标
1.1k
派生
204
平均合并
1 天 9 小时
30 天内合并 PR
8

描述

Running on Mojave 10.14.5
Personal computer on home network, no proxy.

Describe the bug
Created project directory using tns create HelloWorld --template tns-template-blank-ng command.

Running sudo tns run ios prompts initial setup. Setup works fine with xcode install. After this it hangs on installing Google Chrome and any subsequent installs via Homebrew.

Installing Homebrew...
curl: (7) Failed to connect to raw.githubusercontent.com port 443: Operation timed out
Homebrew 2.1.8
Homebrew/homebrew-core (git revision 8498; last commit 2019-07-29)

Allow the script to install Google Chrome?
(Y)es/(N)o
y
Installing Google Chrome (required to debug NativeScript apps)
==> Tapping homebrew/cask
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
Cloning into '/usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask'...
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
fatal: The remote end hung up unexpectedly
Error: Failure while executing; git clone https://github.com/Homebrew/homebrew-cask /usr/local/Homebrew/Library/Taps/homebrew/homebrew-cask --depth=1 exited with 128.
Follow the instructions here:
https://github.com/Homebrew/homebrew-cask#reporting-bugs
/usr/local/Homebrew/Library/Homebrew/utils.rb:264:in safe_system' /usr/local/Homebrew/Library/Homebrew/tap.rb:279:in install'
/usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:158:in run' /usr/local/Homebrew/Library/Homebrew/cask/cmd.rb:124:in run'
/usr/local/Homebrew/Library/Homebrew/cmd/cask.rb:9:in cask' /usr/local/Homebrew/Library/Homebrew/brew.rb:102:in

'
WARNING: Google Chrome not installed

贡献指南

打开贡献指南

从这里开始

  1. 先读完整个 Issue,再读项目的贡献指南。
  2. 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
  3. Fork 仓库,在一个分支上完成修改。
  4. 提交 Pull Request,并在描述里引用这个 Issue 编号。

调研方向

首先,在完成 Xcode 和 Homebrew 设置后,于 macOS Mojave 上重现 sudo tns run ios,重点关注安装 Google Chrome 并 tap homebrew/cask 的步骤。检查 CLI 如何处理报告的 curl 超时和失败的 git clone;当设置完成或显示清晰且可操作的失败信息时,即视为完成。

由索引模型根据 Issue 内容生成。

评估

技术栈
git, ios, javascript, macos
领域
cli, devtools, mobile-dev
Issue 类型
缺陷
难度
4/5
预计耗时
3-5 天
活跃度
停滞
描述清晰度
需要澄清
新手友好度
25/100

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。