What a error with Composer - composer-php

What a error with Composer
here's an error
Cloning into ''...
Permission denied (publickey).
fatal: Could not read from remote repository.
ssh is installed. And I have access to the repository (bitbuket). I'm cloning it on ssh

Related

get `Error installing libpd-ios` on `pod install`

When pod install I get
Analyzing dependencies
Downloading dependencies
Installing libpd-ios (0.11.0)
[!] Error installing libpd-ios
[!] /usr/bin/git -C /var/folders/2w/0wtczkq94c9ch_y6m89gg29m0000jq/T/d20221207-77916-57ccbt submodule update --init --recursive
Submodule 'jni/opensl_stream' (git://github.com/nettoyeurny/opensl_stream.git) registered for path 'jni/opensl_stream'
Submodule 'pure-data' (git://git.code.sf.net/p/pure-data/pure-data) registered for path 'pure-data'
Cloning into '/private/var/folders/2w/0wtczkq94c9ch_y6m89gg29m0000jq/T/d20221207-77916-57ccbt/jni/opensl_stream'...
fatal: unable to connect to github.com:
github.com[0: 140.82.121.4]: errno=Operation timed out
according to fatal: unable to connect to github.com: github.com[0: 140.82.121.3]: errno=Operation timed out this is related to ssh
but how do I fix it?

Doing brew update fatal: unable to access '.git/config': Permission denied mac os catalina

[Screenshot]
1fatal: unable to access '.git/config': Permission denied
warning: unable to access '.git/config': Permission denied
fatal: unable to access '.git/config': Permission denied
warning: unable to access '.git/config': Permission denied
fatal: unable to access '.git/config': Permission denied
I'm doing command brew update
I have the ZSH shell installed as well and I'm using Iterm also the same error on original terminal
After your fresh homebrew installation, you should always run sudo chown -R $(whoami) $(brew --prefix)/* to do the one-time permission setup.
This is because homebrew is trying to setup the brew repo for brew in your local.

Pod setup failed

When I run pod setup, I get this error:
LeodeMacBook-Pro:repos Leo$ pod setup
Setting up CocoaPods master repo
[!] /usr/local/bin/git clone https://github.com/CocoaPods/Specs.git master
Cloning into 'master'...
error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF
fatal: index-pack failed
Maybe, because my bad networking?
Do this:
sudo rm -rf ~/.cocoapods/repos/master
git clone https://github.com/CocoaPods/Specs.git ~/.cocoapods/repos/master
Than run pod setup again.

While running 'pod setup' in terminal, it fails with below error -

While running 'pod setup' in terminal, it fails with below error:
error: RPC failed; curl 56 SSLRead() return error -36
fatal: The remote end hung up unexpectedly
fatal: early EOF fatal: index-pack failed
Increase the http buffer
git config http.postBuffer 524288000
and still gettin the issue please
Please open the terminal and execute this
git config --global user.email "youremail#xxx.xxx"
then try pod setup

brew.rb Permission denied

I was trying to brew update when I got suddenly a permission error:
/usr/local/bin/brew: line 28: /usr/local/Library/brew.rb: Permission denied
/usr/local/bin/brew: line 28: exec: /usr/local/Library/brew.rb: cannot execute: Undefined error: 0
I also tried sudo brew update, but without any luck.
What can I do?
The way that worked for me was to do as #happylookout suggested.
cd /usr/local
git fetch origin
git reset --hard origin/master
However, you may get a permissions error such as:
error: unable to unlink old 'bin/brew' (Permission denied)
error: unable to unlink old 'share/man/man1/brew.1' (Permission denied)
fatal: Could not reset index file to revision 'origin/master'.
To fix this, you need to run the last command above with sudo:
sudo git reset --hard origin/master
Now you should be able to run brew update without errors.
Had the same problem just now and solved it by updating the whole thing via git:
cd /usr/local
git fetch origin
git reset --hard origin/master
You could try running this
sudo chown -R $(whoami) /usr/local
I uninstalled brew and reinstalled it. Fixed the problem.

Resources