cordova-ios-安装ios-deploy

运行cordova requirements检查是否具备使用 Cordova 开发/运行 Android / IOS 应用的条件

cordova requirements

IOS的检查中会提示ios-deploy未安装,并且给了我们一个npm安装命令

执行命令后并不能安装成功,https://github.com/phonegap/ios-deploy/issues/188

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
!!!! WARNING: You are on OS X 10.11 El Capitan, you may need to add the
!!!! WARNING:   `--unsafe-perm=true` flag when running `npm install`
!!!! WARNING:   or else it will fail.
!!!! WARNING: link:
!!!! WARNING:   https://github.com/phonegap/ios-deploy#os-x-1011-el-capitan

!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

这里指出了原因:由于Mac系统版本导致,需要添加一个参数

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

你可能感兴趣的:(Cordova,Vue)