Cordova - CordovaError: Promise rejected with non-error: 'ios-deploy was not found

Posted sunylat

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Cordova - CordovaError: Promise rejected with non-error: 'ios-deploy was not found相关的知识,希望对你有一定的参考价值。

错误信息:

CordovaError: Promise rejected with non-error: ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do ‘npm install -g ios-deploy‘
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
CordovaError: Promise rejected with non-error: ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do ‘npm install -g ios-deploy‘
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
CordovaError: Promise rejected with non-error: ios-deploy was not found. Please download, build and install version 1.9.2 or greater from https://github.com/phonegap/ios-deploy into your path, or do ‘npm install -g ios-deploy‘
    at cli.catch.err (/usr/local/lib/node_modules/cordova/bin/cordova:30:15)
    at <anonymous>
    at process._tickCallback (internal/process/next_tick.js:189:7)
** ARCHIVE FAILED **

发生情况:在OSX里面执行Cordova编译命令时候发生。

错误原因:没能安装“ios-deploy”这个node插件。

解决办法:安装它就好了,用下面命令安装,如果第一个命令安装失败,那么用第二个命令安装。

sudo npm install -g ios-deploy

如果上面命令安装失败,那么使用下面命令:

sudo npm install -g ios-deploy --unsafe-perm=true

ios-deploy官方网站:

https://github.com/ios-control/ios-deploy

以上是关于Cordova - CordovaError: Promise rejected with non-error: 'ios-deploy was not found的主要内容,如果未能解决你的问题,请参考以下文章

关于启动cordova项目 报CordovaError: No emulator images (avds) found

Cordova - CordovaError: Promise rejected with non-error: 'ios-deploy was not found

CordovaError:插件无效! ..\hello 需要一个有效的 package.json

CordovaError:承诺被非错误拒绝:错误代码 65

cordova-plugin-adam-wechat 插件安装

cordova-plugin-adam-wechat 插件安装