php學習踩坑(一)

weixin_41652299發表於2020-12-28

php學習–laravel踩坑

在這裡插入圖片描述安裝composer,
建立laravel,一直報錯
composer create-project laravel/laravel --prefer-dist

搜了好久,找到一個解決方案
在這裡插入圖片描述composer create-project laravel/laravel --prefer-dist --ignore-platform-reqs

引數說明

–ignore-platform-reqs: ignore all platform requirements (php, hhvm, lib-* and ext-*) and force the installation even if the local machine does not fulfill these. See also the platform config option

忽略所有平臺要求(php,hhvm,lib- *和ext- *)並強制安裝,即使本地計算機不滿足這些要求

相關文章