Home>Article>Development Tools> How to force a package reinstall in Composer

How to force a package reinstall in Composer

藏色散人
藏色散人 forward
2020-11-05 16:14:10 6233browse

The following tutorial column ofcomposerwill introduce to you how to force Composer to reinstall the package. I hope it will be helpful to friends in need!

How to force a package reinstall in Composer

You can use the following command to reinstall dependent packages under composer under php:

composer install --prefer-source

Related introduction:

Composer is a dependency management tool for PHP. 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 How to force a package reinstall in Composer. 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