3

所以我试图学习 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

谁能帮我解决这个问题?我是新手,试图从教程中学习。谢谢!我使用的是 Macbook Pro 2015,所有安装都是在我遵循的教程之前完成的。

4

1 回答 1

5

问题解决了这个:

npm install -g ios-deploy --unsafe-perm=true
于 2016-12-23T01:51:12.323 回答