Laravel Error: Please provide a valid cache path

后端 未结 3 1215
孤街浪徒
孤街浪徒 2021-02-14 08:27

I cloned a Laravel 5.2 project.

When I execute composer install, I got the error:

  [InvalidArgumentException]
  Please provide a valid cache path. 


        
相关标签:
3条回答
  • 2021-02-14 09:21

    Try the following:

    create these folders under storage/framework:

    • sessions
    • views
    • cache

    Now it should work

    0 讨论(0)
  • 2021-02-14 09:28

    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
    
    0 讨论(0)
  • 2021-02-14 09:30

    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!

    0 讨论(0)
提交回复
热议问题