Your requirements could not be resolved to an installable set of packages for laravel

前端 未结 6 1497
猫巷女王i
猫巷女王i 2021-02-05 05:01

I use 5.7v Laravel and 7.2.1v PHP and composer last version, but when I like to create new project these errors appeared:

Your requirements could not be resolved         


        
6条回答
  •  梦如初夏
    2021-02-05 05:56

    In my case, I had both installed PHP and XAMPP and in my path, i pointed at C:/php/as the PHP interpreter. In C:/php/php.ini, it was ;extension=fileinfo whereas in C:/xampp/php/php.ini it was extension=fileinfo. I did two changes,

    1. Deleted C:/php/
    2. Changed my path to PHP to point to c:/xampp/php/

    The problem is now resolved

提交回复
热议问题