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

What is the reason why an authorized user name and password is required for Composer installation?

2025-01-16 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Internet Technology >

Share

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

This article mainly introduces "Composer installation requires to enter the authorized user name password is what is the reason", in the daily operation, I believe that many people in the Composer installation request to enter the authorized user name password is what reason there is doubt, Xiaobian consulted all kinds of information, sorted out a simple and easy-to-use method of operation, hope to answer the "Composer installation requires to enter the authorized user name password is what reason" doubt is helpful! Next, please follow the editor to study!

D:\ work\ dreamland-yii > composer require "saviorlv/yii2-dysms:dev-master" Authentication required (packagist.phpcomposer.com): Username: Password: [Composer\ Downloader\ TransportException] Invalid credentials for 'https://packagist.phpcomposer.com/p/saviorlv/yii2-dysms%24045b85ee8f7a846caecdf82efa78fb4927e19868940b05fbb3ddb6383a10d41f.json', Aborting.require [--dev] [--prefer-source] [--prefer-dist] [--no-progress] [--no-suggest] [--no-update] [--no-scripts] [--update-no-dev] [--update-with-dependencies] [--update-with-all-dependencies] [--ignore-platform-reqs] [--prefer-stable] [--prefer-lowest] [--sort- Packages] [- o |-- optimize-autoloader] [- a |-- classmap-authoritative] [--apcu-autoloader] [- -] [].

It needs to be changed to China's composer source, and the "There is an arrear problem with this JSS account that prevents the operation from completing successfully" displayed in the request API is translated as: "there is a problem of arrears in this JSS account, so that the operation cannot be completed successfully."

Just switch to domestic mirror sources, https://pkg.phpcomposer.com/.

Composer config-g repo.packagist composer https://packagist.phpcomposer.com

And then I have another problem here.

D:\ work\ dreamland-yii > composer require "saviorlv/yii2-dysms:dev-master". / composer.json has been updatedLoading composer repositories with package informationUpdating dependencies (including require-dev) Could not fetch https://api.github.com/repos/bestiejs/punycode.js/tags?per_page=100, please create a GitHub OAuth token to go over the API rate limitHead to https://github.com/settings/tokens/new?scopes=repo&description=Composer+on+JL-HOST-008-PC+2018-10-13+0916to retrieve a token. It will be stored in "C:/Users/niuben/AppData/Roaming/Composer/auth.json" for future use by Composer.Token (hidden):

It asked me to enter a token???.

After searching online, this is because Composer did not add a github key.

Solution method

Enter https://github.com/settings/tokens and click "Generate new token" (remember to log in first)

Create a new Token, enter a description, select New by default, and then you will get a Token, and then paste this value over the OK.

At this point, the study on "what is the reason why you are required to enter an authorized user name and password during Composer installation" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!

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