Laravel Artisan命令错误



我是Laravel的新手。我使用的是Laravel 5.3。我使用下面的代码来安装Laravel 5.3。

php作曲家。新建项目laravel/laravel=5.3

我试图执行"php artsisan——v",但我发现下面的错误

PHP Fatal error:  Uncaught ErrorException: array_merge(): Argument #1 is not an
array in D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundati
onExceptionsHandler.php:93
Stack trace:
#0 [internal function]: IlluminateFoundationBootstrapHandleExceptions->handle
Error(2, 'array_merge(): ...', 'D:\php7\htdocs\...', 93, Array)
#1 D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundationExc
eptionsHandler.php(93): array_merge(Array)
#2 D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundationExc
eptionsHandler.php(61): IlluminateFoundationExceptionsHandler->shouldntRepor
t(Object(ErrorException))
#3 D:php7htdocsaddbookappExceptionsHandler.php(35): IlluminateFoundation
ExceptionsHandler->report(Object(ErrorException))
#4 D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundationBoo
tstrapHandleExceptions.php(79): AppExceptionsHandler->report(Object(ErrorExce
ption))
#5 [internal function]: IlluminateFoundationBootstrapHandleExceptions->handle
Exce in D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundatio
nExceptionsHandler.php on line 93
PHP Fatal error:  Uncaught ErrorException: array_merge(): Argument #1 is not an
array in D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundati
onExceptionsHandler.php:93
Stack trace:
#0 [internal function]: IlluminateFoundationBootstrapHandleExceptions->handle
Error(2, 'array_merge(): ...', 'D:\php7\htdocs\...', 93, Array)
#1 D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundationExc
eptionsHandler.php(93): array_merge(Array)
#2 D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundationExc
eptionsHandler.php(61): IlluminateFoundationExceptionsHandler->shouldntRepor
t(Object(SymfonyComponentDebugExceptionFatalErrorException))
#3 D:php7htdocsaddbookappExceptionsHandler.php(35): IlluminateFoundation
ExceptionsHandler->report(Object(SymfonyComponentDebugExceptionFatalErrorEx
ception))
#4 D:php7htdocsaddbookvendorlaravelframeworksrcIlluminateFoundationBoo
tstrapHandleExceptions.php(79): AppExceptionsHandler->report(Object(SymfonyC
omponentDebug in D:php7htdocsaddbookvendorlaravelframeworksrcIlluminate
FoundationExceptionsHandler.php on line 93

谁能说一下解决方案是什么??

好吧,不要使用develop分支!

运行php composer.phar create-project --prefer-dist laravel/laravel=5.3 addbook .


同样,如果您的Composer Vendor文件夹是您的路径,您应该能够通过运行达到相同的效果laravel new addbook

您需要拉稳定版本,尝试添加参数-首选-dist

composer create-project --prefer-dist laravel/laravel addbook

相关内容

  • 没有找到相关文章

最新更新