NativeScript / NativeScript/nativescript-cli

ns doctor gets stuck on "Getting environment information"

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

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

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

説明

New project.
ns doctor gets stuck on "Getting environment information"
I've find out that the method
getNodeGypVersion() {
return this.getValueForProperty(() => this.nodeGypVerCache, () => __awaiter(this, void 0, void 0, function* () {
const output = yield this.execCommand("node-gyp -v");
return output ? this.getVersionFromString(output) : null;
}));
}
in file \AppData\Roaming\npm\node_modules\nativescript\node_modules@nativescript\doctor\lib\sys-info.js
gets stuck.
on the line
const output = yield this.execCommand("node-gyp -v");

If return null from the method, everything works.

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

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

はじめの一歩

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

調査の方向性

@nativescript/doctor/lib/sys-info.js の getNodeGypVersion() から開始し、環境情報の取得中にハングする execCommand("node-gyp -v") の呼び出しを追跡してください。doctor の実行を再現してから、コマンド実行経路を調査し、node-gyp が利用できない場合や応答しない場合に期待される動作を特定してください。完了の条件は、ns doctor が停止したままにならず完了することです。

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

評価

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

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

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