ios-deploy 无法在 Mac OS X El Capitan 10.11 上安装

标签 ios node.js xcode cordova ionic-framework

我正在尝试通过运行 sudo npm install -g ios-deploy 在 Mac OS X El Capitan 10.11 上安装 ios-deploy,但最终出现以下错误消息:

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 以来的一个问题。要么尝试:

npm install -g ios-deploy --unsafe-perm=true

或:

npm install -g ios-deploy --allow-root

此解决方案是在 ios-deploy 的相关 github 上提出的.

关于ios-deploy 无法在 Mac OS X El Capitan 10.11 上安装,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/34195673/

相关文章:

swift - Xcode 日志消息 "flock failed to lock list file"

ios - 何时在 iOS 应用程序中使用 sqlite3_close

ios - UIButton - 文本被截断

iphone - 使用手势识别器进行内存管理

ios - Swift SpriteKit touchesBegan 检测右/左

swift - 无法从游戏场景、Swift 3/Spritekit 中停止背景音乐

ios - Xcode 9.2 : missing required architecture arm64 in file/. ......./libPaymentsSDK.a(2 片)

node.js - 获取 Axios 错误 : connect ETIMEDOUT when making high volume of calls

JavaScript 异步/等待 : undefined error on file read

javascript - 我收到错误 : Failed to register a ServiceWorker: A bad HTTP response code (404) was received when fetching the script