NativeScript / NativeScript/nativescript-cli
ns doctor gets stuck on "Getting environment information"
还没有人认领这个 Issue。
- 主要语言
- JavaScript
- 星标
- 1.1k
- 派生
- 204
- 平均合并
- 1 天 9 小时
- 30 天内合并 PR
- 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.
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 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