sudo npm install -g ios-deploy错误

d3b*_*ing 3 npm cordova iosdeployment

所以我试图学习Cordova/PhoneGap,我正在学习"B​​uild".根据我正在关注的教程,我需要sudo npm install -g ios-sim.之后成功,教程告诉我安装ios-deploy.我做了sudo npm install -g ios-deploy,出现了错误:

Desktop/Cordova/myApp$ sudo npm install -g ios-deploy
npm WARN lifecycle ios-deploy@1.9.0~preinstall: cannot run in wd %s %s (wd=%s) ios-deploy@1.9.0 ./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-298c9491
npm ERR! Darwin 16.1.0
npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy"
npm ERR! node v6.7.0
npm ERR! npm  v3.10.3
npm ERR! path /usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy
npm ERR! code ENOENT
npm ERR! errno -2
npm ERR! syscall chmod

npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent ENOENT: no such file or directory, chmod '/usr/local/lib/node_modules/ios-deploy/build/Release/ios-deploy'
npm ERR! enoent This is most likely not a problem with npm itself
npm ERR! enoent and is related to npm not being able to find a file.
npm ERR! enoent 

npm ERR! Please include the following file with any support request:
npm ERR!     /Users/jasoncuray/Desktop/Cordova/myApp/npm-debug.log
Run Code Online (Sandbox Code Playgroud)

有人可以帮我这个吗?我是新手试图从教程中学习.谢谢!我正在使用Macbook Pro 2015,所有安装都是在我正在关注的教程之前完成的.

d3b*_*ing 5

问题解决了这个问题:

npm install -g ios-deploy --unsafe-perm=true
Run Code Online (Sandbox Code Playgroud)