npm install -g ios-deploy didn't work , it displays error

Girish picture Girish · Jul 21, 2018 · Viewed 9.9k times · Source

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.

Error:

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

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

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.

Solution Tried:

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

Details:

OS: 1.13.6

xcode version: 9.4.1

node version: v10.7.0

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

Can Any help me on this.

Thanks.

Answer

Girish picture Girish · Jul 24, 2018

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

  1. sudo npm uninstall -g ios-deploy
  2. brew install ios-deploy

@Paul - Thanks for looking in it.