我花了好几个小时试图找出我的安装出错的地方。可悲的是,我没有接近解决这个问题。我认为这可能与上下文有关,但我几乎猜到了。我也怀疑它可能是我的节点,但我再次猜测。每次我尝试安装Appium时,我都会遇到同样的错误。任何了解这个问题的人在这一点上都会像个超级英雄。
enter code here9 errors generated.
make: *** [Release/obj.target/validation/src/validation.o] Error 1
gyp ERR! build error
gyp ERR! stack Error: `make` failed with exit code: 2
gyp ERR! stack at ChildProcess.onExit (/usr/local/lib/node_modules/npm/node_modules/node-gyp/lib/build.js:270:23)
gyp ERR! stack at emitTwo (events.js:87:13)
gyp ERR! stack at ChildProcess.emit (events.js:172:7)
gyp ERR! stack at Process.ChildProcess._handle.onexit (internal/child_process.js:200:12)
gyp ERR! System Darwin 15.0.0
gyp ERR! command "/usr/local/Cellar/node/5.0.0/bin/node" "/usr/local/lib/node_modules/npm/node_modules/node-gyp/bin/node-gyp.js" "rebuild"
gyp ERR! cwd /usr/local/lib/node_modules/appium/node_modules/ws/node_modules/utf-8-validate
gyp ERR! node -v v5.0.0
gyp ERR! node-gyp -v v3.0.3
gyp ERR! not ok
npm WARN install:utf-8-validate@1.1.0 utf-8-validate@1.1.0 install:`node- gyp rebuild`
npm WARN install:utf-8-validate@1.1.0 Exit status 1
/usr/local/lib
└── appium@1.4.13
答案 0 :(得分:0)
我曾经在旧的Mac机器上遇到同样的错误。 我的问题的原因是X代码和x代码命令行工具较旧。更新xcode解决了这个问题。 确保在升级后至少打开一次xcode。