Laravel 4.2 Composer 安装错误:“无法扫描类"
问题描述
我想通过 Composer 在我的新 Laravel 4.2 安装中安装一些包.但是,我遇到了一个例外.
I want to install on my new Laravel 4.2 installation some packages via Composer. However, I am getting an exception.
这是我的 Composer 文件:
This is my Composer file:
当运行 composer install
我得到:
这基本上是一个全新的 Laravel 安装.为什么会出现错误:
This is basically a fresh Laravel installation. Why do I get the error:
更新
使用 composer 更新
:
推荐答案
尝试使用 composer update
.这就是它在错误中所说的内容.
Try using composer update
. That is what it says in the error.
更新:
Composer 正在尝试查找文件夹 app/controllers/admin
,它在 laravel 中不是标准文件夹.你确定这个文件夹存在吗?如果没有,您可以尝试从 composer.json 中删除这些和其他自定义文件夹,然后手动添加它们.您还可以创建目录并保持 composer.json 不变.
Composer is trying to find the folder app/controllers/admin
which is no standard folder in laravel. Are you sure this folder exists? If not, you could try removing these, and other custom folders, from the composer.json, and add them manually. You could also create the directories and leave the composer.json untouched.
这篇关于Laravel 4.2 Composer 安装错误:“无法扫描类"的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持编程学习网!