解决错误Cloning failed using an ssh key for authentication
错误提示:
Cloning failed using an ssh key for authentication, enter your GitHub credentials to access private repos
When working with _public_ GitHub repositories only, head to https://github.com/settings/tokens/new?scopes=&description=Composer+on+OS-20230225CQPT+2024-01-30+1101 to retrieve a token.
解决办法:
composer config --global --auth github-oauth.github.com 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
下面是我生成的token:
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登录github,打开下面链接
https://github.com/settings/tokens
生成一个token
然后执行以下代码composer config --global --auth github-oauth.github.com <token>
1
正确写法composer config --global --auth github-oauth.github.com 441be92d716e*****853ec70ffa
1
然后看报错提示里面的C:/Users/Administrator/AppData/Roaming/Composer/auth.jso
1
这个下面的文件是否有改变,如果有就没啥问题了