Could not open input file: artisan

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

    I checked out an existing Laravel project, which did not have this script. Even a find / -name 'artisan' produced no results. The solution turned out to be simple, if a bit weird:

    curl -L 'https://raw.githubusercontent.com/laravel/laravel/v4.2.11/artisan' > artisan
    

    You probably want to choose a tagged version that matches your installed version of Laravel.

提交回复
热议问题