Failed to clone https://github.com/magento/magento-composer-installer.git, git was not found

在win10系统安装magento2.1的时候,在命令行里输入composer install 时输出如下报错提示

Failed to clone https://github.com/magento/magento-composer-installer.git, git was not found

解决方案:

把项目根目录下的composer.lock文件删除,再重新运行composer install


版权声明:本文为qq_43140482原创文章,遵循CC 4.0 BY-SA版权协议,转载请附上原文出处链接和本声明。