sudo npm install -g ios-deploy错误

时间:2016-12-23 01:40:01

标签: cordova npm iosdeployment

所以我正在努力学习Cordova / PhoneGap,而我目前正在学习" Build"。根据我关注的教程,我需要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

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

1 个答案:

答案 0 :(得分:5)

解决问题:

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