错误信息:node
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
错误缘由:没能安装“ios-deploy”这个node插件。git
解决办法:安装它就行了,用下面命令安装,若是第一个命令安装失败,那么用第二个命令安装。github
sudo npm install -g ios-deploy
若是上面命令安装失败,那么使用下面命令:npm
sudo npm install -g ios-deploy --unsafe-perm=true
ios-deploy官方网站:网站