Home >Development Tools >composer >composer install is stuck, what should I do?

composer install is stuck, what should I do?

藏色散人
藏色散人forward
2020-07-17 13:06:434795browse

The following tutorial column of composer will introduce to you the solution to the stuck composer install. I hope it will be helpful to friends in need!

composer install is stuck, what should I do?

Execute php composer.phar install prompt

Loading composer repositories with package information

1. Root cause : The download source is abroad and cannot be downloaded normally.

2. Change to the domestic download site and execute the following command:

php  composer.phar config repo.packagist composer https://packagist.phpcomposer.com

Related introduction:

Composer is a dependency management of PHP tool. We can declare the external tool libraries we depend on in the project, and Composer will help you install these dependent library files. With it, we can easily use one command to reference other people's excellent code into our project. .

Composer is not installed globally by default, but is installed based on a directory of a specified project (such as vendor).

Composer requires PHP 5.3.2 or above, and openssl needs to be turned on.

Composer can run on Windows, Linux and OSX platforms.

The above is the detailed content of composer install is stuck, what should I do?. For more information, please follow other related articles on the PHP Chinese website!

Statement:
This article is reproduced at:csdn.net. If there is any infringement, please contact admin@php.cn delete