安装ios-deploy的时候报错Failed at the [email protected] preinstall script. npm ERR!

报错信息如下:

npm ERR! code ELIFECYCLE
npm ERR! errno 65
npm ERR! ios-deploy@1.10.0 preinstall: `./src/scripts/check_reqs.js && xcodebuild`
npm ERR! Exit status 65
npm ERR! 
npm ERR! Failed at the ios-deploy@1.10.0 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!     /var/root/.npm/_logs/2019-12-10T07_43_02_957Z-debug.log

解决办法:输入下面的指令之后再安装ios-deploy

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

在这里插入图片描述
大功告成

你可能感兴趣的:(cordova)