更新时间:2023-02-24 15:29:20
不要修改 vendor/
文件夹中的文件.曾经.它们可以并且将在您运行的下一次 Composer 更新时被覆盖.
Do not ever modify files in the vendor/
folder. Ever. They can and will be overwritten on the next composer update you run.
这是我的 WampServer 解决方案
我的 WampServer 使用的是 PHP 7.1.9,因此将下面示例中的 7.1.9
更改为您当前使用的版本号.
I am using PHP 7.1.9 for my WampServer, so change 7.1.9
in the example below to the version number you are currently using.
C:wamp64inphpphp7.1.9
文件夹php.ini
并找到这一行:C:wamp64inphpphp7.1.9
folderphp.ini
and find this line:;curl.cainfo
改为:
curl.cainfo = "C:wamp64inphpphp7.1.9cacert.pem"
确保删除行首的分号.
保存对 php.ini
的更改,重新启动 WampServer,您就可以开始了!
Save changes to php.ini
, restart WampServer, and you're good to go!