Laravel 错误:请提供有效的缓存路径
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/38931728/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me):
StackOverFlow
Laravel Error: Please provide a valid cache path
提问by steve
I cloned a Laravel 5.2 project.
我克隆了一个 Laravel 5.2 项目。
When I execute composer install, I got the error:
当我执行 composer install 时,出现错误:
[InvalidArgumentException]
Please provide a valid cache path.
Theses folders are exists:
这些文件夹存在:
storage/app
storage/framework
storage/logs
bootstrap/cache
and its all 777.
和它的所有 777。
How can i fixed this error!
我该如何修复这个错误!
回答by steve
I fixed it.
我修好了它。
Create these folders under storage/framework:
在存储/框架下创建这些文件夹:
sessions
views
cache
And also you can use this command to install:
您也可以使用此命令进行安装:
sudo composer install
Now its worked!
现在它起作用了!
回答by user3775413
Try the following:
请尝试以下操作:
create these folders under storage/framework:
在storage/framework下创建这些文件夹:
- sessions
- views
- cache
- 会议
- 意见
- 缓存
Now it should work
现在它应该工作
回答by Sohail Ahmed
Run these commands in your terminal.
在终端中运行这些命令。
cd storage/
mkdir -p framework/{session,views,cache}
chmod -R 775 framework
chown -R www-data:www-data framework