NativeScript / NativeScript/nativescript-cli
ns doctor gets stuck on "Getting environment information"
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
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- 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