安裝 phpexcel 報錯
http://www.apdwn.com/doc/1026.html

執(zhí)行
composer require phpoffice/phpspreadsheet
報錯
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.
你這個是網(wǎng)絡(luò)問題,因為Composer下載php程序時需要訪問國外的網(wǎng)站下載,國內(nèi)訪問國外很慢的,建議使用vpn翻墻訪問
開源是一種精神,但不是義務(wù),幫忙是情分,不幫也不要抱怨,建議大家多研究代碼、多閱讀代碼、多翻閱社區(qū)歷史問題!
境外網(wǎng)站肯定會超時了,用中文鏡像吧https://www.phpcomposer.com/
用國內(nèi)鏡像啊
翻墻是王道
回復(fù)@向錢看

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