Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

The solution to the user name error in composer install

2025-02-24 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

Shulou(Shulou.com)06/02 Report--

Editor to share with you the solution to the user name error in composer install. I hope you will gain a lot after reading this article. Let's discuss it together.

C:\ Users\ huy\ AppData\ Roaming\ Composer\ auth.json

What happened:

The corresponding project has been pulled from the project in the git server before, but there is an authentication error this time; the reason is that my user name is wrong.

Error report:

[RuntimeException]

Failed to execute git clone-no-checkout "https://hy:***@gitlab.xnhd.com/x

/ core.git "D:\ wnmp\ wwwroot\ test\ www.xnhd.com\ vendor\ xnhd\ core" & & cd / D "D

:\ wnmp\ wwwroot\ test\ www.xnhd.com\ vendor\ xnhd\ core "& & git remote add compos

Er "https://hy:***@gitlab.xnhd.com/x/core.git" & & git fetch composer"

Cloning into'D:\ wnmp\ wwwroot\ test\ www.xnhd.com\ vendor\ xnhd\ core'...

Fatal: Authentication failed for 'https://hy:***@gitlab.xnhd.com/x/core.git

/'

Solution:

Go to the Users directory of disk C, C:\ Users\ huy\ AppData\ Roaming\ Composer\ auth.json to edit the auth.json file and change the user name and password to the correct user name and password.

After reading this article, I believe you have a certain understanding of the solution to user name errors in composer install. If you want to know more about it, welcome to follow the industry information channel. Thank you for your reading!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Internet Technology

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report