Could not open input file: artisan

后端 未结 27 1136
清歌不尽
清歌不尽 2020-11-30 17:45

When trying to create a new laravel project, The following error appears on the CLI:

Could not open input file: artisan

Script php artisan clear-c

27条回答
  •  难免孤独
    2020-11-30 18:07

    What did the trick for me was to do cd src from my project directoy, and then use the php artisan command, since my artisan file was in the src folder. Here is my project structure:

    project
    |__ config
    |__ src
        |__ app
        |__ ..
        |__ artisan  // hello there!
        |__ ...
    |__ ...
    

提交回复
热议问题