npm install -g ios-deploy不起作用,它显示错误 [英] npm install -g ios-deploy didn't work , it displays error

查看:319
本文介绍了npm install -g ios-deploy不起作用,它显示错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试在计算机上安装APPIUM,并希望在实际设备中运行它,为此,我必须安装命令"npm install -g ios-deploy" 但是当我尝试安装时,它使错误消失.

I am trying to install APPIUM on my machine and want to run it in actual device, for that i have to install the command 'npm install -g ios-deploy' but when i am trying to install it is dispalying the error.

错误:

以下构建命令失败: PhaseScriptExecution Run \脚本build/ios-deploy.build/Release/ios-deploy.build/Script-C0CD3D981F59D20100F954DB.sh

he following build commands failed: PhaseScriptExecution Run\ Script build/ios-deploy.build/Release/ios-deploy.build/Script-C0CD3D981F59D20100F954DB.sh

(1个失败) npm ERR!代码ELIFECYCLE npm ERR!埃尔诺65 npm ERR! ios-deploy@1.9.2预安装:./src/scripts/check_reqs.js && xcodebuild npm ERR!退出状态65 npm ERR! npm ERR!在ios-deploy@1.9.2预安装脚本上失败. npm ERR! npm可能不是问题.上面可能还有其他日志记录输出.

(1 failure) npm ERR! code ELIFECYCLE npm ERR! errno 65 npm ERR! ios-deploy@1.9.2 preinstall: ./src/scripts/check_reqs.js && xcodebuild npm ERR! Exit status 65 npm ERR! npm ERR! Failed at the ios-deploy@1.9.2 preinstall script. npm ERR! This is probably not a problem with npm. There is likely additional logging output above.

npm ERR!可以在以下位置找到此运行的完整日志: npm ERR! /Users/synerzip/.npm/_logs/2018-07-21T10_30_21_090Z-debug.log syn-macmini-03:〜synerzip $ xcodebuild xcodebuild:错误:目录/Users/synerzip不包含Xcode项目.

npm ERR! A complete log of this run can be found in: npm ERR! /Users/synerzip/.npm/_logs/2018-07-21T10_30_21_090Z-debug.log syn-macmini-03:~ synerzip$ xcodebuild xcodebuild: error: The directory /Users/synerzip does not contain an Xcode project.

尝试过的解决方案:

  1. sudo npm install -g ios-deploy
  2. npm install -g ios-deploy --unsafe-perm = true
  3. npm install -g ios-deploy --allow-root

详细信息:

操作系统:1.13.6

OS: 1.13.6

xcode版本:9.4.1

xcode version: 9.4.1

节点版本:v10.7.0

node version: v10.7.0

注意 当我在路径显示后运行命令'xcode-select --print-path'时, "/Applications/Xcode.app/Contents/Developer"

Note when i run the command 'xcode-select --print-path' following path display, "/Applications/Xcode.app/Contents/Developer"

有什么可以帮助我的吗?

Can Any help me on this.

谢谢.

推荐答案

我已经按顺序尝试了以下步骤,并且对我有用.

I have tried the following steps sequentially and it works for me.

  1. sudo npm卸载-g ios-deploy
  2. 酿造ios-deploy

@Paul-感谢您的关注.

@Paul - Thanks for looking in it.

这篇关于npm install -g ios-deploy不起作用,它显示错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆