Laravel Composer安装出现Class "Normalizer" not found
Song •
2308 次浏览 •
0个评论 •
2022年11月05日
Laravel在新的环境部署,执行composer install 时候出现如下报错:
解决办法如下:
apt-get install php8.0-intl
# 其他版本具体查看自己的安装方法
apt-get install php-intlPHP Fatal error: Uncaught Error: Class "Normalizer" not found in /usr/share/php/Symfony/Component/Console/Helper/Helper.php:65
Stack trace:
#0 /usr/share/php/Symfony/Component/Console/Helper/ProgressBar.php(383): Symfony\Component\Console\Helper\Helper::width()
#1 /usr/share/php/Symfony/Component/Console/Helper/ProgressBar.php(322): Symfony\Component\Console\Helper\ProgressBar->setMaxSteps()
#2 /usr/share/php/Composer/Util/Loop.php(89): Symfony\Component\Console\Helper\ProgressBar->start()
#3 /usr/share/php/Composer/Installer/InstallationManager.php(497): Composer\Util\Loop->wait()
#4 /usr/share/php/Composer/Installer/InstallationManager.php(362): Composer\Installer\InstallationManager->waitOnPromises()
#5 /usr/share/php/Composer/Installer/InstallationManager.php(282): Composer\Installer\InstallationManager->downloadAndExecuteBatch()
#6 /usr/share/php/Composer/Installer.php(754): Composer\Installer\InstallationManager->execute()
#7 /usr/share/php/Composer/Installer.php(281): Composer\Installer->doInstall()
#8 /usr/share/php/Composer/Command/InstallCommand.php(139): Composer\Installer->run()
#9 /usr/share/php/Symfony/Component/Console/Command/Command.php(298): Composer\Command\InstallCommand->execute()
#10 /usr/share/php/Symfony/Component/Console/Application.php(1015): Symfony\Component\Console\Command\Command->run()
#11 /usr/share/php/Symfony/Component/Console/Application.php(299): Symfony\Component\Console\Application->doRunCommand()
#12 /usr/share/php/Composer/Console/Application.php(336): Symfony\Component\Console\Application->doRun()
#13 /usr/share/php/Symfony/Component/Console/Application.php(171): Composer\Console\Application->doRun()
#14 /usr/share/php/Composer/Console/Application.php(131): Symfony\Component\Console\Application->run()
#15 /usr/bin/composer(84): Composer\Console\Application->run()
-
Mac如何安装unrar以及报错解决方法 2022-10-22 -
git如何实现版本回退操作 2022-09-20 -
JS限制input限制只能输入英文、中文、字母、小数、表情包等 2022-08-25 -
Laravel使用阿里云短信发送验证码 2022-08-23 -
laravel使用$request方法合集 2022-08-08

Laravel创建项目报require ext-fileinfo错误