Npm ERR! Failed at the [email protected] install script 'node install-npm.js'

I installed Appium 1.6.0 on MacOS 10.12 in the morning with via ‘sudo npm install -g appium’ but it gave me an error when I launched the inspector so I decided to reinstall it.
First I removed all the npm folders with ‘rm -f -r’ command, then reinstalled node.js, updated npm and trying to install Appium again, however this time it fails while installing chromedriver. Here’s the log from terminal:

sudo npm install -g appium
/usr/local/bin/appium -> /usr/local/lib/node_modules/appium/build/lib/main.js

> [email protected] install /usr/local/lib/node_modules/appium/node_modules/appium-chromedriver
> node install-npm.js

info Chromedriver Install Installing Chromedriver version '2.21' for platform 'mac' and architecture '32'
info Chromedriver Install Opening temp file to write chromedriver_mac32 to...
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_mac32.zip...
RequestError: Error: getaddrinfo ENOTFOUND chromedriver.storage.googleapis.com chromedriver.storage.googleapis.com:80
    at new RequestError (/usr/local/lib/node_modules/appium/node_modules/request-promise/lib/errors.js:11:15)
    at Request.RP$callback [as _callback] (/usr/local/lib/node_modules/appium/node_modules/request-promise/lib/rp.js:60:32)
    at self.callback (/usr/local/lib/node_modules/appium/node_modules/request/request.js:187:22)
    at emitOne (events.js:77:13)
    at Request.emit (events.js:169:7)
    at Request.onRequestError (/usr/local/lib/node_modules/appium/node_modules/request/request.js:813:8)
    at emitOne (events.js:77:13)
    at ClientRequest.emit (events.js:169:7)
    at Socket.socketErrorListener (_http_client.js:269:9)
    at emitOne (events.js:77:13)
    at Socket.emit (events.js:169:7)
    at connectErrorNT (net.js:1012:8)
    at nextTickCallbackWith2Args (node.js:442:9)
    at process._tickCallback (node.js:356:17)
/usr/local/lib
└── (empty)

npm ERR! Darwin 16.0.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "appium"
npm ERR! node v4.6.1
npm ERR! npm  v3.10.9
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: `node install-npm.js`
npm ERR! Exit status 1
npm ERR! 
npm ERR! Failed at the [email protected] install script 'node install-npm.js'.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs appium-chromedriver
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/sergei/npm-debug.log
npm ERR! code 1

I am getting the same issue while installing. And below are the attached logs as well
ideas$ npm install appium-chromedriver proxy=http://172.26.121.251.lan:80
npm ERR! addLocal Could not install /Users/ideas/proxy=http:/172.26.121.251.lan:80
npm ERR! Darwin 15.6.0
npm ERR! argv “/usr/local/Cellar/node/7.0.0/bin/node” “/usr/local/bin/npm” “install” “appium-chromedriver” “proxy=http://172.26.121.251.lan:80
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! path /Users/ideas/proxy=http:/172.26.121.251.lan:80
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall open

npm ERR! enoent ENOENT: no such file or directory, open ‘/Users/ideas/proxy=http:/172.26.121.251.lan:80’
npm ERR! enoent ENOENT: no such file or directory, open ‘/Users/ideas/proxy=http:/172.26.121.251.lan:80’
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent

npm ERR! Please include the following file with any support request:
npm ERR! /Users/ideas/npm-debug.log
IDeaSMacBook:~ ideas$ npm install appium-chromedriver --proxy=http://172.26.121.251.lan:80

[email protected] install /Users/ideas/node_modules/appium-chromedriver
node install-npm.js

(node:8912) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
info Chromedriver Install Installing Chromedriver version ‘2.25’ for platform ‘mac’ and architecture ‘64’
info Chromedriver Install Opening temp file to write chromedriver_mac64 to…
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip
RequestError: Error: connect ECONNREFUSED 172.217.26.80:80
at new RequestError (/Users/ideas/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback [as _callback] (/Users/ideas/node_modules/request-promise/lib/rp.js:60:32)
at self.callback (/Users/ideas/node_modules/request/request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/Users/ideas/node_modules/request/request.js:824:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
npm WARN enoent ENOENT: no such file or directory, open ‘/Users/ideas/package.json’
npm WARN ideas No description
npm WARN ideas No repository field.
npm WARN ideas No README data
npm WARN ideas No license field.
npm ERR! Darwin 15.6.0
npm ERR! argv “/usr/local/Cellar/node/7.0.0/bin/node” “/usr/local/bin/npm” “install” “appium-chromedriver” “–proxy=http://172.26.121.251.lan:80
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install-npm.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node install-npm.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-chromedriver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/ideas/npm-debug.log

Please revert

first do:

export http_proxy=“http://<DOMAIN\USERNAME>:<PASSWORD>@<HOST>:<PORT>/"
export https_proxy=“http://<DOMAIN\USERNAME>:<PASSWORD>@<HOST>:<PORT>/"

and after

npm install -g appium

Solved the issue for me.

Hi,
Thanks for the prompt reply.
I have tried to use the above and still there is no change in installation status.
I am getting this err : RequestError: Error: connect ETIMEDOUT 172.26.120.23:80.
I have appended the logs of the installation as well.

[email protected] install /Users/ideas/node_modules/appium-chromedriver
node install-npm.js

(node:9979) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
info Chromedriver Install Installing Chromedriver version ‘2.25’ for platform ‘mac’ and architecture ‘64’
info Chromedriver Install Opening temp file to write chromedriver_mac64 to…
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.25/chromedriver_mac64.zip
RequestError: Error: connect ETIMEDOUT 172.26.120.23:80
at new RequestError (/Users/ideas/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback [as _callback] (/Users/ideas/node_modules/request-promise/lib/rp.js:60:32)
at self.callback (/Users/ideas/node_modules/request/request.js:186:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/Users/ideas/node_modules/request/request.js:824:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)

[email protected] install /Users/ideas/node_modules/appium/node_modules/appium-chromedriver
node install-npm.js

(node:9987) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
info Chromedriver Install Installing Chromedriver version ‘2.21’ for platform ‘mac’ and architecture ‘32’
info Chromedriver Install Opening temp file to write chromedriver_mac32 to…
info Chromedriver Install Downloading http://chromedriver.storage.googleapis.com/2.21/chromedriver_mac32.zip
RequestError: Error: connect ETIMEDOUT 172.26.120.23:80
at new RequestError (/Users/ideas/node_modules/appium/node_modules/request-promise/lib/errors.js:11:15)
at Request.RP$callback [as _callback] (/Users/ideas/node_modules/appium/node_modules/request-promise/lib/rp.js:60:32)
at self.callback (/Users/ideas/node_modules/appium/node_modules/request/request.js:187:22)
at emitOne (events.js:96:13)
at Request.emit (events.js:188:7)
at Request.onRequestError (/Users/ideas/node_modules/appium/node_modules/request/request.js:813:8)
at emitOne (events.js:96:13)
at ClientRequest.emit (events.js:188:7)
at Socket.socketErrorListener (_http_client.js:309:9)
at emitOne (events.js:96:13)
at Socket.emit (events.js:188:7)
at emitErrorNT (net.js:1281:8)
at _combinedTickCallback (internal/process/next_tick.js:74:11)
at process._tickCallback (internal/process/next_tick.js:98:9)
/Users/ideas
└── (empty)

npm WARN enoent ENOENT: no such file or directory, open ‘/Users/ideas/package.json’
npm WARN ideas No description
npm WARN ideas No repository field.
npm WARN ideas No README data
npm WARN ideas No license field.
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] (node_modules/appium-chromedriver):
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: [email protected] install: node install-npm.js
npm WARN optional SKIPPING OPTIONAL DEPENDENCY: Exit status 1
npm ERR! Darwin 15.6.0
npm ERR! argv “/usr/local/Cellar/node/7.0.0/bin/node” “/usr/local/bin/npm” “install” “[email protected]
npm ERR! node v7.0.0
npm ERR! npm v3.10.8
npm ERR! code ELIFECYCLE

npm ERR! [email protected] install: node install-npm.js
npm ERR! Exit status 1
npm ERR!
npm ERR! Failed at the [email protected] install script ‘node install-npm.js’.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the appium-chromedriver package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR! node install-npm.js
npm ERR! You can get information on how to open an issue for this project with:
npm ERR! npm bugs appium-chromedriver
npm ERR! Or if that isn’t available, you can get their info via:
npm ERR! npm owner ls appium-chromedriver
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:
npm ERR! /Users/ideas/npm-debug.log
npm ERR! code 1

Thanks in advance.

Its always getting stuck at installing ‘Chrome-Driver’.
is there some configurations that I am missing. please let me know

I’ve no idea why else it might be failing other than proxy configuration.

I just tried reinstalling appium and it worked fine if I export proxy setting before I run the installation command.

However I encounter the same error as you do if I try to install uiautomator2-driver via npm, then it fails on the chromedriver installation and proxy is not helping in this case. This is still a mystery for me…

ok, thanks for the reply, will try to investigate and update here as well.
By that time , if you find anything more do share :slight_smile:

Thanks

Hi sahil,

Try with different network it will work.i too got the same error so tried changing with different network.the problem is some proxy is not allowing to install chromedriver.

If you’re doing this from office and not able to change network, have proxy issues, etc., try setting up a hotspot on a mobile device and using it as a network. Should work perfectly fine

Hey,
Yes, it was the proxy issue only. I tried to install the app from another network and it got installed successfully.

Thanks for the help guys

Hey guys now i could able to run appium successfully but it was installing webdriver agent in device instead of launching my app.Can anyone say why it was launching it? and how could i launch my app?

You need to provide at least the code you’re executing and appium logs.

Hi Ser,

Kindly look to the Appium log

[10] 16799
[9] Terminated: 15 appium
deepika:app-automation Deepi$ (node:16799) DeprecationWarning: os.tmpDir() is deprecated. Use os.tmpdir() instead.
[Appium] Welcome to Appium v1.6.0 (REV 8d64b6a02d78811f50d5f747ce10df09d54b4791)
[Appium] Appium REST http interface listener started on 0.0.0.0:4723
[HTTP] --> POST /wd/hub/session {“desiredCapabilities”:{“appium-version”:“6.0”,“xcodeConfigfile”:"/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig",“realDeviceLogger”:"/usr/local/lib/node_modules/deviceconsole/deviceconsole",“platformVersion”:“9.3.1”,“bundleId”:“com.mcclatchy.phoenix-reader”,“automationName”:“XCUITest”,“platformName”:“iOS”,“udid”:“4d81b59befbd4e9067b3e382e6f120e839fd88f0”,“deviceName”:“iPad Air 2”}}
[MJSONWP] Calling AppiumDriver.createSession() with args: [{“appium-version”:“6.0”,"x…
[Appium] Creating new XCUITestDriver session
[Appium] Capabilities:
[Appium] appium-version: ‘6.0’
[Appium] xcodeConfigfile: ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/Config.xcconfig’
[Appium] realDeviceLogger: ‘/usr/local/lib/node_modules/deviceconsole/deviceconsole’
[Appium] platformVersion: ‘9.3.1’
[Appium] bundleId: ‘com.mcclatchy.phoenix-reader’
[Appium] automationName: ‘XCUITest’
[Appium] platformName: ‘iOS’
[Appium] udid: ‘4d81b59befbd4e9067b3e382e6f120e839fd88f0’
[Appium] deviceName: ‘iPad Air 2’
[debug] [XCUITest] XCUITestDriver version: 2.0.26
[BaseDriver] The following capabilities were provided, but are not recognized by appium: appium-version, xcodeConfigfile.
[BaseDriver] Session created with session id: 7bfc5062-adb7-4578-8300-f73cc8bfdee8
[debug] [XCUITest] Xcode version set to ‘8.0’
[debug] [XCUITest] iOS SDK Version set to ‘10.0’
[debug] [XCUITest] Available devices: 4d81b59befbd4e9067b3e382e6f120e839fd88f0
[debug] [XCUITest] Creating iDevice object with udid 4d81b59befbd4e9067b3e382e6f120e839fd88f0
[XCUITest] Determining device to run tests on: udid: ‘4d81b59befbd4e9067b3e382e6f120e839fd88f0’, real device: true
[debug] [iOSLog] Attempting iOS device log capture via libimobiledevice idevicesyslog
[debug] [iOSLog] Found idevicesyslog: ‘/usr/local/bin/idevicesyslog’
[XCUITest] Setting up real device
[debug] [XCUITest] Error checking install status: Command ‘ios-deploy --exists --id 4d81b59befbd4e9067b3e382e6f120e839fd88f0 --bundle_id com.mcclatchy.phoenix-reader’ exited with code 255
[debug] [XCUITest] App is not installed. Will try to install.
[debug] [XCUITest] Real device specified but no ipa or app path, assuming bundle ID is on device
[XCUITest] Using default agent: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj
[XCUITest] Using default bootstrap: /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=4d81b59befbd4e9067b3e382e6f120e839fd88f0’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/vijaygvb/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/656E7B9C-8F80-4AE6-9205-57F0A6679A01/Session-WebDriverAgentRunner-2016-11-04_170007-zhm1qI.log
[debug] [WebDriverAgent] Device: Nov 4 17:00:10 wipros-iPad XCTRunner[516] : Running tests…
[debug] [WebDriverAgent] Device: Nov 4 17:00:18 wipros-iPad XCTRunner[516] : The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
[Xcode] 2016-11-04 17:00:38.244 xcodebuild[16811:460895] Error Domain=IDETestOperationsObserverErrorDomain Code=5 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted” UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

[debug] [WebDriverAgent] Device: Nov 4 17:00:18 wipros-iPad XCTRunner[516] : (dlopen_preflight(/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Referenced from: /private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
[debug] [WebDriverAgent] Device: Reason: no suitable image found. Did find:
[debug] [WebDriverAgent] Device: /private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)
[debug] [WebDriverAgent] Device: Nov 4 17:00:18 wipros-iPad SpringBoard[55] : BSXPCMessage received error for message: Connection invalid
[Xcode]
Testing failed:

[Xcode] Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **

[Xcode] 2016-11-04 17:00:10.876 XCTRunner[516:100432] Running tests…
2016-11-04 17:00:18.349 XCTRunner[516:100432] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-11-04 17:00:18.350 XCTRunner[516:100432] (dlopen_preflight(/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/FB0C5424-C632-4D4C-9824-D588167A495C/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[debug] [XCUITest] xcodebuild failure warrants retry. Retrying…
[XCUITest] Shutting down WebDriverAgent
[XCUITest] System log exited with code ‘null’
[XCUITest] Launching WebDriverAgent on the device
[debug] [XCUITest] Carthage found: /usr/local/bin/carthage
[debug] [XCUITest] Beginning test with command ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/bin/run-xcodebuild.sh --project /usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent/WebDriverAgent.xcodeproj --scheme WebDriverAgentRunner --destination id=4d81b59befbd4e9067b3e382e6f120e839fd88f0’ in directory ‘/usr/local/lib/node_modules/appium/node_modules/appium-xcuitest-driver/WebDriverAgent’
[XCUITest] Waiting for WebDriverAgent to start on device
[debug] [XCUITest] Log file for xcodebuild test: /Users/vijaygvb/Library/Developer/Xcode/DerivedData/WebDriverAgent-brdadhpuduowllgivnnvuygpwhzy/Logs/Test/C6735AC7-EB95-4C06-AD05-BAEF9D4F1737/Session-WebDriverAgentRunner-2016-11-04_170043-hor0Vo.log
[Xcode] 2016-11-04 17:00:50.364 xcodebuild[17090:461646] Error Domain=IDETestOperationsObserverErrorDomain Code=5 “Early unexpected exit, operation never finished bootstrapping - no restart will be attempted” UserInfo={NSLocalizedDescription=Early unexpected exit, operation never finished bootstrapping - no restart will be attempted}

[Xcode]
Testing failed:
Test target WebDriverAgentRunner encountered an error (Early unexpected exit, operation never finished bootstrapping - no restart will be attempted)
** TEST FAILED **

[Xcode] 2016-11-04 17:00:30.424 XCTRunner[519:100928] Running tests…
2016-11-04 17:00:30.474 XCTRunner[519:100928] The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
2016-11-04 17:00:30.474 XCTRunner[519:100928] (dlopen_preflight(/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
Referenced from: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
Reason: no suitable image found. Did find:
/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)

[XCUITest] xcodebuild exited with code ‘65’ and signal ‘null’
[XCUITest] Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[debug] [XCUITest] Running ios real device reset flow
[debug] [XCUITest] Resetting simulator
[debug] [iOSLog] Stopping iOS log capture
[MJSONWP] Encountered internal error running command: Error: xcodebuild failed with code 65
at SubProcess. (lib/webdriveragent.js:294:25)
at emitTwo (events.js:106:13)
at SubProcess.emit (events.js:191:7)
at ChildProcess. (lib/teen_process.js:191:14)
at emitTwo (events.js:106:13)
at ChildProcess.emit (events.js:191:7)
at Process.ChildProcess._handle.onexit (internal/child_process.js:215:12)
[HTTP] <-- POST /wd/hub/session 500 56409 ms - 167
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Running tests…
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Looking for test bundles in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Found test bundle at /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : Looking for configurations in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : No configurations found, creating a default configuration that will run all tests.
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad kernel[0] : AMFI: XCTRunner(pid 521) - [deny-mmap] mapped executable file has no team identifier in its signature: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad amfid[188] : /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML not valid: 0xe8008015: A valid provisioning profile for this executable was not found.
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
[debug] [WebDriverAgent] Device: Nov 4 17:04:29 wipros-iPad XCTRunner[521] : (dlopen_preflight(/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Referenced from: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
[debug] [WebDriverAgent] Device: Reason: no suitable image found. Did find:
[debug] [WebDriverAgent] Device: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Running tests…
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Looking for test bundles in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Found test bundle at /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : Looking for configurations in /var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : No configurations found, creating a default configuration that will run all tests.
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : The bundle “WebDriverAgentRunner” couldn’t be loaded because it is damaged or missing necessary resources. Try reinstalling the bundle.
[debug] [WebDriverAgent] Device: Nov 4 17:04:40 wipros-iPad XCTRunner[522] : (dlopen_preflight(/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/WebDriverAgentRunner): Library not loaded: @rpath/KissXML.framework/KissXML
[debug] [WebDriverAgent] Device: Referenced from: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/WebDriverAgentLib
[debug] [WebDriverAgent] Device: Reason: no suitable image found. Did find:
[debug] [WebDriverAgent] Device: /private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML: mmap() errno=1 validating first page of ‘/private/var/containers/Bundle/Application/C0F96A76-BC1A-419A-A4A1-96F6A93FB01E/WebDriverAgentRunner-Runner.app/PlugIns/WebDriverAgentRunner.xctest/Frameworks/WebDriverAgentLib.framework/Frameworks/KissXML.framework/KissXML’)
[debug] [XCUITest] Waiting for WebDriverAgent server to finish loading…

There is bug with this command.

npm install -g appium@beta should work