聯(lián)系官方銷售客服
1835022288
028-61286886
安裝 phpexcel 報(bào)錯(cuò)
http://223987.com/doc/1026.html
執(zhí)行
composer require phpoffice/phpspreadsheet
報(bào)錯(cuò)
Do not run Composer as root/super user! See https://getcomposer.org/root for details
Continue as root/super user [yes]? yes
Using version ^1.17 for phpoffice/phpspreadsheet
./composer.json has been created
Running composer update phpoffice/phpspreadsheet
Loading composer repositories with package information
Updating dependencies
Your requirements could not be resolved to an installable set of packages.
Problem 1
- phpoffice/phpspreadsheet[1.17.0, ..., 1.17.1] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension.
- Root composer.json requires phpoffice/phpspreadsheet ^1.17 -> satisfiable by phpoffice/phpspreadsheet[1.17.0, 1.17.1].
To enable extensions, verify that they are enabled in your .ini files:
- /www/server/php/74/etc/php.ini
You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.
Installation failed, deleting ./composer.json.
Your requirements could not be resolved to an installable set of packages.
你這個(gè)是網(wǎng)絡(luò)問(wèn)題,因?yàn)?span style="color: rgb(51, 51, 51); font-family: Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif; white-space: normal; background-color: rgb(255, 255, 255);">Composer下載php程序時(shí)需要訪問(wèn)國(guó)外的網(wǎng)站下載,國(guó)內(nèi)訪問(wèn)國(guó)外很慢的,建議使用vpn翻墻訪問(wèn)
境外網(wǎng)站肯定會(huì)超時(shí)了,用中文鏡像吧https://www.phpcomposer.com/
用國(guó)內(nèi)鏡像啊
翻墻是王道
回復(fù)@向錢看

能下載了,但是卡在這里怎么回事
上面英文說(shuō)明了,網(wǎng)絡(luò)問(wèn)題
錯(cuò)誤提示是php版本低了,php74以上才行