Home >Development Tools >composer >Solve the verification problem when installing laravel with composer

Solve the verification problem when installing laravel with composer

藏色散人
藏色散人forward
2020-07-30 13:09:293230browse

The following tutorial column of composer will introduce to you how to solve the problems that need to be verified when installing laravel with composer. I hope it will be helpful to friends in need!

Solve the verification problem when installing laravel with composer

# Why do I need to verify when installing laravel with composer?

I used the Chinese image source and followed the official composer command.

When installing laravel, the following error occurs. Why? It used to be fine when I installed it on another computer, but now I have a different computer. How to solve this problem?

[www@localhost composer]$ composer global require "laravel/installer"
Changed current directory to /home/www/.config/composer
Using version ^2.0 for laravel/installer
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
                                             
    Authentication required (packagist.phpcomposer.com):
      Username: 
      Password:

Solution:

Fill in your github account password, or change to another source https://packagist.laravel-china.org.

The above is the detailed content of Solve the verification problem when installing laravel with composer. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:xueyuanjun.com. If there is any infringement, please contact admin@php.cn delete
Previous article:How to uninstall ComposerNext article:How to uninstall Composer