NativeScript / NativeScript/nativescript-cli

ns doctor gets stuck on "Getting environment information"

Open
#5,530 2 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
JavaScript
Stars
1.1k
Forks
204
Avg merge
1d 9h
Merged PRs (30d)
8

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in @nativescript/doctor/lib/sys-info.js at getNodeGypVersion() and trace the execCommand("node-gyp -v") call that hangs during environment information. Reproduce the doctor run, then inspect the command execution path to determine the expected behavior when node-gyp is unavailable or unresponsive; done means ns doctor completes instead of getting stuck.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript, nodejs
Domain
cli
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.