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:
我正在尝试在Mac OS X El Capitan 10.11上安装ios-deploy,通过运行sudo npm install -g 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.
Why is it fail? How can I solve it?
为什么会失败?我怎么解决呢?
4 个解决方案
#1
39
This seems to be an issue since El Capitan
. Either try:
这似乎是自El Capitan以来的一个问题。试一试:
npm install -g ios-deploy --unsafe-perm=true
or:
或者:
npm install -g ios-deploy --allow-root
This solution is proposed at the relating github from ios-deploy.
这个解决方案是在ios-deploy的关联github上提出的。
#2
5
I tried with different ways.
我尝试了不同的方法。
This line worked for me.
这条线对我很管用。
sudo npm install -g --unsafe-perm ios-deploy
sudo npm安装-g——不安全perm ios部署
#3
0
Here is a new Solution, which is working right now.....
这里有一个新的解决方案,正在进行中……
You need Download Xcode from APP Store, in X-code go in Preferences > Location > Command Line Tools, then select one of the listed options. After that you can install:
您需要从APP Store下载Xcode,在X-code中进入Preferences > Location >命令行工具,然后选择列出的选项之一。之后你可以安装:
sudo npm install -g ios-sim sudo npm install --global --unsafe-perm ios-deploy
sudo npm安装-g ios-sim sudo npm安装—全局—不安全perm ios-部署
#4
-1
iOS-deploy allow us install and debug iPhone apps from the command line, without using Xcode. The first line works for me.
iOS-deploy允许我们从命令行安装和调试iPhone应用程序,而无需使用Xcode。第一行对我有用。
npm install -g ios-deploy --unsafe-perm=true
#1
39
This seems to be an issue since El Capitan
. Either try:
这似乎是自El Capitan以来的一个问题。试一试:
npm install -g ios-deploy --unsafe-perm=true
or:
或者:
npm install -g ios-deploy --allow-root
This solution is proposed at the relating github from ios-deploy.
这个解决方案是在ios-deploy的关联github上提出的。
#2
5
I tried with different ways.
我尝试了不同的方法。
This line worked for me.
这条线对我很管用。
sudo npm install -g --unsafe-perm ios-deploy
sudo npm安装-g——不安全perm ios部署
#3
0
Here is a new Solution, which is working right now.....
这里有一个新的解决方案,正在进行中……
You need Download Xcode from APP Store, in X-code go in Preferences > Location > Command Line Tools, then select one of the listed options. After that you can install:
您需要从APP Store下载Xcode,在X-code中进入Preferences > Location >命令行工具,然后选择列出的选项之一。之后你可以安装:
sudo npm install -g ios-sim sudo npm install --global --unsafe-perm ios-deploy
sudo npm安装-g ios-sim sudo npm安装—全局—不安全perm ios-部署
#4
-1
iOS-deploy allow us install and debug iPhone apps from the command line, without using Xcode. The first line works for me.
iOS-deploy允许我们从命令行安装和调试iPhone应用程序,而无需使用Xcode。第一行对我有用。