Could not open input file: artisan

后端 未结 27 1078
清歌不尽
清歌不尽 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:22

    Just make sure you are in the project folder by typing

    ls

    If not then go to the project folder by typing

     cd folder_name
    

    for example:

    cd laravel
    

    And then type

    php artisan serve

提交回复
热议问题