ios-deploy无法在Mac OS X El Capitan 10.11上安装 [英] ios-deploy fail to install on Mac OS X El Capitan 10.11
本文介绍了ios-deploy无法在Mac OS X El Capitan 10.11上安装的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我试图通过运行 sudo npm install -g ios-deploy
在Mac OS X El Capitan 10.11上安装ios-deploy,它最终会显示此错误消息:
I am trying to install ios-deploy on Mac OS X El Capitan 10.11 by running sudo npm install -g ios-deploy
and it end up with this error message:
sh: line 1: 1106 Abort trap: 6 xcodebuild
npm ERR! Darwin 15.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v4.2.3
npm ERR! npm v2.14.7
npm ERR! code ELIFECYCLE
npm ERR! ios-deploy@1.8.3 preinstall: `./src/check_reqs.js && xcodebuild`
npm ERR! Exit status 134
npm ERR!
npm ERR! Failed at the ios-deploy@1.8.3 preinstall script './src/check_reqs.js && xcodebuild'.
npm ERR! This is most likely a problem with the ios-deploy package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! ./src/check_reqs.js && xcodebuild
npm ERR! You can get their info via:
npm ERR! npm owner ls ios-deploy
npm ERR! There is likely additional logging output above.
为什么会失败?
推荐答案
这似乎是一个问题,因为 El Capitan
。可以尝试:
This seems to be an issue since El Capitan
. Either try:
npm install -g ios-deploy --unsafe-perm=true
或:
npm install -g ios-deploy --allow-root
此解决方案在相关的 github 来自 ios-deploy 。
这篇关于ios-deploy无法在Mac OS X El Capitan 10.11上安装的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文