composer install file could not be downloaded (HTTP/1.1 405 Not Allowed)

使用composer install安装依赖的时候报了如下错误

Installing symfony/thanks (v1.0.7): Downloading (failed)    Failed to download symfony/thanks from dist: The "https://files.phpcomposer.com/files/symfony/thanks/bade4992c46ed72

2162694b4af8d72f84402819a.zip" file could not be downloaded (HTTP/1.1 405 Not Allowed)

解决办法:删除vendor文件夹和composer.lock,重新composer install即可

posted @ 2018-08-29 15:13  李傲强  阅读(2375)  评论(0编辑  收藏  举报