使用 composer 安装包时出错,但包似乎已安装
Error when installing package with composer but package seems installed anyway
我正在尝试使用 Composer 安装软件包 maddhatter/laravel-fullcalendar(Laravel FullCalendar.io 的助手)。
所以这是命令我 运行:
'''
php ../../composer.phar 需要 maddhatter/laravel-fullcalendar
'''
结果如下:
Using version ^1.3 for maddhatter/laravel-fullcalendar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals
- Installing maddhatter/laravel-fullcalendar (v1.3.0): Downloading (100%)
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalErrorException]
Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 255
但现在我想知道这个包是否安装了,因为它现在出现在我的已安装包列表中。
如果有人知道答案,在此先感谢。
尝试手动删除供应商目录中的文件 compiled.php
,然后它又开始工作了。
我正在尝试使用 Composer 安装软件包 maddhatter/laravel-fullcalendar(Laravel FullCalendar.io 的助手)。 所以这是命令我 运行:
''' php ../../composer.phar 需要 maddhatter/laravel-fullcalendar '''
结果如下:
Using version ^1.3 for maddhatter/laravel-fullcalendar
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Package operations: 1 install, 0 updates, 0 removals - Installing maddhatter/laravel-fullcalendar (v1.3.0): Downloading (100%) Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Writing lock file
Generating autoload files
php artisan clear-compiled
[Symfony\Component\Debug\Exception\FatalErrorException] Call to undefined method Illuminate\Foundation\Application::getCachedCompilePath()
Script php artisan clear-compiled handling the post-update-cmd event returned with error code 255
但现在我想知道这个包是否安装了,因为它现在出现在我的已安装包列表中。
如果有人知道答案,在此先感谢。
尝试手动删除供应商目录中的文件 compiled.php
,然后它又开始工作了。