我存储在 Ubuntu 中的作曲家全局配置信息在哪里 [英] where is my composer global config information stored in Ubuntu
问题描述
I added a wrong github token to my global composer configuration and cannot remove it again.
I did
composer config --global --auth github-oauth.github.com myWrongTokenDamn
Now I cannot overwrite it by executing it again with the correct token and I don't know where this information is stored to remove it manually.
The command to show where it is stored just gives me the error, that I am using the wrong token. Thanks I know that....
I use Ubuntu 18.04 and installed composer following this https://getcomposer.org/download/ instruction and then moving the binary to /usr/bin/composer.
Reinstalling didn't help either, so the information clearly is not stored at /usr/bin/composer
Weird solution:
I noticed that the behaviour did only occur, when I was within my current project, which had of course a composer.json file
What I did then I moved to my home directory and executed the the command again this time with the correct token:
composer config --global --auth github-oauth.github.com myCorrectLongToken
And the error message is gone.
While I am happy about the fix, it would be good if someone could explain what happened in the background.
Now
$ composer config --list
gives me the list of all settings including [home]
[home] /home/myUser/.config/composer
where everything is stored.
这篇关于我存储在 Ubuntu 中的作曲家全局配置信息在哪里的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!