NativeScript / NativeScript/nativescript-cli

'tns create' hangs for half an hour and then fails

オープン
#4,781 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

まだ誰も着手していません。

主要言語
JavaScript
スター
1.1k
フォーク
204
平均マージ
1日 9時間
マージ済み PR(30日)
8

説明

@ezpzlmnsqzy1 commented on Thu Jun 27 2019

Environment
Result of tns info:
Component nativescript has 5.4.2 version and is up to date.

Describe the bug
Running the command tns create HelloWorld --template tns-template-blank results in a hang with no output for roughly half an hour before failing with the message request to https://registry.npmjs.org/tns-template-blank failed, reason: read ECONNRESET

Expected behavior
A project is created

Additional context
I suspect this is related to me being behind a company proxy. However, I set my proxy info using tns proxy set with no change to the behavior. Setting the same proxy info in many other programs and tools works just fine, so I'm not entirely sure this is the cause of the issue here

コントリビューションガイド

コントリビューションガイドを開く

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

調査の方向性

報告されているプロキシ設定で tns create HelloWorld --template tns-template-blank を実行し、registry.npmjs.org へのリクエストを確認することから始めます。CLI のプロキシ処理とテンプレートのダウンロード処理を追跡し、その後、コマンドがプロジェクトを作成するか、ハングするのではなく、対処可能なエラーですぐに失敗することを確認します。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
javascript
領域
cli, networking
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。