我正在尝试使用npm命令安装appium。
每一次尝试我都会犯错。
在最后一次尝试中,我将参考以下链接:
node-gyp build error windows x64
因此,要在我的windows 10 64位机器中安装appium,我遵循以下步骤:
npm install --global --production windows-build-tools
npm config set msvs_version 2013 --global
npm install -g node-gyp-install
npm install appium获取错误如下:
C:\WINDOWS\system32\node_modules\appium\node_modules\heapdump>if node npm_config_node_gyp (节点“C:\ Files\nodejs\node_modules\npm\bin\node-gyp-bin....\node_modules\node-gyp\bin\node-gyp.js”重新构建“)其他(节点”重新构建“)npm_config_node_gyp: binding.gyp未找到(cwd: C:\WINDOWS\system32\node_modules\appium\node_modules\heapdump),同时试图加载binding.gyp npm_config_node_gyp ERR!配置错误绞盘错误!堆栈错误:
gyp失败,退出代码:1,gyp!堆栈在Files\nodejs\node_modules\npm\node_modules\node-gyp\lib\configure.js:305:16) ChildProcess.onCpExit (C:\Program )在emitTwo (events.js:106:13)健身房堆放错误!在ChildProcess.emit (events.js:191:7)健身房堆放错误!堆栈在Process.ChildProcess._handle.onexit (内部/子流程.12:215:12)系统Windows_NT 10.0.15063!命令“C:\ Files\nodejs\node.exe”"C:\Program Files\nodejs\node.exe“"rebuild”gyp!cwd C:\WINDOWS\system32\node_modules\appium\node_modules\heapdump绞车!节点-v v6.11.0gyperr!节点- -v v3.4.0gyp错误!不确定C:\WINDOWS\system32 32‘- appium@1.7.1
appium的唯一问题是它的复杂配置。
如果有任何一个工作步骤安装appium在窗口,那么请分享。这会很有帮助的
如有任何建议,将不胜感激

发布于 2017-12-01 09:12:26
我错过了appium安装的全局标记
npm install -g appium因此,请按以下步骤安装:
npm install --global --production windows-build-tools
npm config set msvs_version 2013 --global
npm install -g node-gyp-install
npm install -g node-gyp
npm install -g appiumhttps://stackoverflow.com/questions/47574273
复制相似问题