码迷,mamicode.com
首页 > 移动开发 > 详细

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

时间:2018-11-07 00:07:58      阅读:3956      评论:0      收藏:0      [点我收藏+]

标签:git   callback   nod   str   1.9   anon   arch   was   inter   

错误信息:

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

标签:git   callback   nod   str   1.9   anon   arch   was   inter   

原文地址:https://www.cnblogs.com/sunylat/p/9919758.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!