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!
# 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!