Home > Backend Development > PHP Tutorial > windows下composer怎么进行全局修改

windows下composer怎么进行全局修改

PHPz
Release: 2020-09-04 15:07:01
Original
2752 people have browsed it

windows下composer怎么进行全局修改

windows下composer进行全局修改的方法:

Composer 安装目录下的 composer.bat跟composer.phar文件复制粘贴到php的安装目录

(需要跟php.exe同级),

然后修改环境变量:计算机->属性->高级系统设置->环境变量->系统变量

修改Path的值为 php.exe的绝对路径

composer.bat 内容为:

@echo OFF
:: in case DelayedExpansion is on and a path contains !
setlocal DISABLEDELAYEDEXPANSION
php "%~dp0composer.phar" %*
Copy after login

重启计算机然后打开运行->cmd  执行composer -v 看效果

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template