lsongdev / lsongdev/node-bluetooth
Can't install in Windows
未关闭
还没有人认领这个 Issue。
- 主要语言
- C++
- 星标
- 205
- 派生
- 56
- PR 合并指标
- 30 天内没有已合并 PR
描述
I've already installed the node-gyp
then try to run npm install node-bluetooth --save
but I got this error.
gyp ERR! build error
gyp ERR! stack Error: `C:\Program Files (x86)\MSBuild\14.0\bin\MSBuild.exe` failed with exit code: 1
gyp ERR! stack at ChildProcess.onExit (C:\Program Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\build.js:194:23)
gyp ERR! stack at ChildProcess.emit (events.js:210:5)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:272:12)
gyp ERR! System Windows_NT 10.0.17763
gyp ERR! command "C:\\Program Files\\nodejs\\node.exe" "C:\\Program Files\\nodejs\\node_modules\\npm\\node_modules\\node-gyp\\bin\\node-gyp.js" "configure" "build"
gyp ERR! cwd C:\Users\MonstaX\Downloads\Compressed\node-bluetooth-master
gyp ERR! node -v v12.13.0
gyp ERR! node-gyp -v v5.0.5
gyp ERR! not ok
npm ERR! code ELIFECYCLE
npm ERR! errno 1
npm ERR! node-bluetooth@1.2.6 install: `prebuild-install || node-gyp configure build`
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the node-bluetooth@1.2.6 install script.
npm ERR! This is probably not a problem with npm. There is likely additional logging output above.
npm ERR! A complete log of this run can be found in:
npm ERR! C:\Users\MonstaX\AppData\Roaming\npm-cache\_logs\2019-11-13T11_24_01_389Z-debug.log
贡献指南
从这里开始
- 先读完整个 Issue,再读项目的贡献指南。
- 在 Issue 下留言说明你要接手 —— 这能避免两个人做同样的事。
- Fork 仓库,在一个分支上完成修改。
- 提交 Pull Request,并在描述里引用这个 Issue 编号。
调研方向
首先,在 Windows 10 上使用 Node.js v12.13.0 和 node-gyp v5.0.5,借助报告中的脚本 prebuild-install || node-gyp configure build 以及 MSBuild 错误来复现安装过程。检查原生构建要求和完整输出;在受影响的 Windows 环境中 npm install node-bluetooth --save 成功即表示完成。issue 中没有指定文件或测试。
由索引模型根据 Issue 内容生成。
评估
- 技术栈
- cpp, node.js
- 领域
- build-system, operating-systems
- Issue 类型
- 缺陷
- 难度
- 4/5
- 预计耗时
- 3-5 天
- 活跃度
- 停滞
- 描述清晰度
- 需要澄清
- 新手友好度
- 20/100