Installing CocoaPods "Operation not permitted" error

安装CocoaPods于OS X 10.11
本文提供了一种解决在OS X El Capitan上安装CocoaPods时遇到操作未被允许错误的方法。通过设置自定义的GEM_HOME路径,确保了安装过程顺利进行。

Installing CocoaPods on OS X 10.11

These instructions were tested on all betas and the final release of El Capitan.

Custom GEM_HOME

This is the solution when you are receiving the "Operation not permitted" error.

$ mkdir -p $HOME/Software/ruby
$ export GEM_HOME=$HOME/Software/ruby
$ gem install cocoapods
[...]
1 gem installed
$ export PATH=$PATH:$HOME/Software/ruby/bin
$ pod --version
0.37.2
"D:\DevEcoStudio\DevEco Studio\tools\node\node.exe" "D:\DevEcoStudio\DevEco Studio\tools\hvigor\bin\hvigorw.js" --sync -p product=default --analyze=normal --parallel --incremental --no-daemon Installing pnpm@8.13.1... npm ERR! code EPERM npm ERR! syscall open npm ERR! path D:\node\node_cache\_cacache\tmp\eeb68e0b npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, open 'D:\node\node_cache\_cacache\tmp\eeb68e0b' npm ERR! [Error: EPERM: operation not permitted, open 'D:\node\node_cache\_cacache\tmp\eeb68e0b'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'open', npm ERR! path: 'D:\\node\\node_cache\\_cacache\\tmp\\eeb68e0b' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! Log files were not written due to an error writing to the directory: D:\node\node_cache\_logs npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal > hvigor ERROR: 00308002 Operation Error Error Message: D:\DevEcoStudio\DevEco Studio\tools\node\npm.cmd install,pnpm execute failed. * Try the following: > Space is not supported in HVIGOR_USER_HOME. Remove the space in HVIGOR_USER_HOME to fix the issue. Process finished with exit code -1
07-09
"E:\DevEco\DevEco Studio\tools\node\node.exe" "E:\DevEco\DevEco Studio\tools\hvigor\bin\hvigorw.js" --sync -p product=default --analyze=normal --parallel --incremental --no-daemon Installing pnpm@8.13.1... npm ERR! code EPERM npm ERR! syscall open npm ERR! path E:\allsoftware\nodejs\node_cache\_cacache\tmp\27d374bf npm ERR! errno -4048 npm ERR! Error: EPERM: operation not permitted, open 'E:\allsoftware\nodejs\node_cache\_cacache\tmp\27d374bf' npm ERR! [Error: EPERM: operation not permitted, open 'E:\allsoftware\nodejs\node_cache\_cacache\tmp\27d374bf'] { npm ERR! errno: -4048, npm ERR! code: 'EPERM', npm ERR! syscall: 'open', npm ERR! path: 'E:\\allsoftware\\nodejs\\node_cache\\_cacache\\tmp\\27d374bf' npm ERR! } npm ERR! npm ERR! The operation was rejected by your operating system. npm ERR! It's possible that the file was already in use (by a text editor or antivirus), npm ERR! or that you lack permissions to access it. npm ERR! npm ERR! If you believe this might be a permissions issue, please double-check the npm ERR! permissions of the file and its containing directories, or try running npm ERR! the command again as root/Administrator. npm ERR! Log files were not written due to an error writing to the directory: E:\allsoftware\nodejs\node_cache\_logs npm ERR! You can rerun the command with `--loglevel=verbose` to see the logs in your terminal > hvigor ERROR: 00308002 Operation Error Error Message: E:\DevEco\DevEco Studio\tools\node\npm.cmd install,pnpm execute failed. * Try the following: > See above for details.
06-29
[root@yfw ~]# cd /www/wwwroot/yfw.szrengjing.com [root@yfw yfw.szrengjing.com]# ./deploy.sh 🔧 开始自动化部署... fatal: not a git repository (or any of the parent directories): .git fatal: not a git repository (or any of the parent directories): .git No composer.json in current directory, do you want to use the one at /www/wwwroot? [Y,n]? y Always want to use the parent dir? Use "composer config --global use-parent-dir true" to change the default. Installing dependencies from lock file Verifying lock file contents can be installed on current platform. Nothing to install, update or remove Generating optimized autoload files 1 package you are using is looking for funding. Use the `composer fund` command to find out more! Could not open input file: think Could not open input file: think chown: changing ownership of 'public/.user.ini': Operation not permitted chmod: changing permissions of 'public/.user.ini': Operation not permitted PHP Warning: require(/www/wwwroot/yfw.szrengjing.com/vendor/autoload.php): failed to open stream: No such file or directory in Standard input code on line 2 Warning: require(/www/wwwroot/yfw.szrengjing.com/vendor/autoload.php): failed to open stream: No such file or directory in Standard input code on line 2 PHP Fatal error: require(): Failed opening required '/www/wwwroot/yfw.szrengjing.com/vendor/autoload.php' (include_path='.:') in Standard input code on line 2 Fatal error: require(): Failed opening required '/www/wwwroot/yfw.szrengjing.com/vendor/autoload.php' (include_path='.:') in Standard input code on line 2 Failed to reload php7.4-fpm.service: Unit php7.4-fpm.service not found. 🎉 部署完成 [root@yfw yfw.szrengjing.com]#
最新发布
11-15
评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值