1. 程式人生 > >mac下cordova的ios-deploy安裝問題

mac下cordova的ios-deploy安裝問題

mac下進行cordova專案編譯部署到ios裝置,這個時候需要安裝ios-deploy,會失敗:

npm WARN lifecycle [email protected]1.8.6~preinstall: cannot run in wd %s %s (wd=%s) [email protected]1.8.6 ./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-298c9491 npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy" npm ERR! node v4.4.2 npm ERR! npm v3.8.6 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/x5/corProject/testApp/npm-debug.log

但是沒法,需要安裝這個才可以部署到ios裝置

後來找了找,發現sudo npm install -g ios-deploy --unsafe-perm=true可以成功安裝。

這個時候可以使用cordova run ios進行ios部署了

mac下進行cordova專案編譯部署到ios裝置,這個時候需要安裝ios-deploy,會失敗:

npm WARN lifecycle [email protected]1.8.6~preinstall: cannot run in wd %s %s (wd=%s) [email protected]1.8.6 ./src/scripts/check_reqs.js && xcodebuild /usr/local/lib/node_modules/.staging/ios-deploy-298c9491 npm ERR! Darwin 15.4.0 npm ERR! argv "/usr/local/bin/node" "/usr/local/bin/npm" "install" "-g" "ios-deploy" npm ERR! node v4.4.2 npm ERR! npm v3.8.6 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/x5/corProject/testApp/npm-debug.log

但是沒法,需要安裝這個才可以部署到ios裝置

後來找了找,發現sudo npm install -g ios-deploy --unsafe-perm=true可以成功安裝。

這個時候可以使用cordova run ios進行ios部署了