我正在尝试为Laravel安装干预图像包,但它不起作用。
在我的composer.json文件中,我有以下内容:
"require": {
"laravel/framework": "4.1.*",
"intervention/image": "1.*"
},然后,在我的项目目录中的命令行中,我有:
php composer.phar install我明白了:
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Warning: The lock file is not up to date with the latest changes in composer.jso
n. You may be getting outdated dependencies. Run update to update them.
Nothing to install or update
Generating autoload files
Generating optimized class loader我试着运行更新,然后再试着安装它,但似乎都不起作用。
任何帮助都将不胜感激,
先谢谢你,斯科特
发布于 2014-03-21 04:56:41
您可能破坏了编写器锁定文件。删除您的供应商文件夹和composer.lock文件:
rm -rf vendor
rm composer.lock如果您使用的是Windows,请使用windows资源管理器删除供应商文件夹和composer.lock文件。
然后重新安装:
composer installhttps://stackoverflow.com/questions/22544841
复制相似问题