laravel composer 安装报 Please provide a valid cache path.

laravel composer 安装报 Please provide a valid cache path.

###具体报错信息如下

   InvalidArgumentException 

  Please provide a valid cache path.

  at vendor/laravel/framework/src/Illuminate/View/Compilers/Compiler.php:36
     32▕      */
     33▕     public function __construct(Filesystem $files, $cachePath)
     34▕     {
     35▕         if (! $cachePath) {
  ➜  36▕             throw new InvalidArgumentException('Please provide a valid cache path.');
     37▕         }
     38▕ 
     39▕         $this->files = $files;
     40▕         $this->cachePath = $cachePath;

      +20 vendor frames 
  21  [internal]:0
      Illuminate\Foundation\Application::Illuminate\Foundation\{closure}()

      +5 vendor frames 
  27  artisan:37
      Illuminate\Fou

###解决方法

    cd storage & mkdir app framework logs views
    cd framework 
    mkdir views

猜你喜欢

转载自blog.csdn.net/m0_37678007/article/details/130574250