How to remove save username and password in composer (laravel 4)

≯℡__Kan透↙ 提交于 2019-12-07 07:57:27

问题


I have updated my laravel vendor using composer. I have bought a package which is located in a github private repo. On downloading composer ask username and password, I have entered the wrong password so it gives me an error. After that I run composer update again but this time it just keep the old wrong password it did not ask me to enter the password again, somewhat save in composer cache. How could I remove the old password in composer?


回答1:


In your ~/.composer, you'll have a file named config.json which contains OAuth token used to log you in GitHub.

Clear your OAuth token or delete this file.




回答2:


Mine was in ~/.config/composer in there is a auth.json that contains saved credentials. Like netvision73 answer, clear your OAuth token or delete the file.



来源:https://stackoverflow.com/questions/18416486/how-to-remove-save-username-and-password-in-composer-laravel-4

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!