brew install ios-deploy 安装失败

今天安装macaca并配置环境,安装ios-deploy的时候报错

npm ERR! code ELIFECYCLE

npm ERR! errno 1

npm ERR! [email protected] preinstall: `./src/scripts/check_reqs.js && xcodebuild`

解决方案:

1.网上方案:sudo npm install -g ios-deploy --unsafe-perm=true

尝试还是安装失败,后在stackoverflow中找到答案解决了(链接)如下:

打开xcode中,Preferences > Location > Command Line Tools,选择你的xcode版本之后,

然后就可以安装啦~~sudo npm install -g ios-deploy --unsafe-perm=true

 

brew install ios-deploy 安装失败_第1张图片

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:

sudo npm install -g ios-sim sudo npm install --global --unsafe-perm ios-deploy

你可能感兴趣的:(测试)