laravel运行php artisan serve命令时无法打开流致命错误 [英] laravel failed to open stream fatal error when running php artisan serve command

查看:90
本文介绍了laravel运行php artisan serve命令时无法打开流致命错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我最近通过composer在Windows上安装了laravel,并在xamp的htdocs文件夹中创建了一个名为project的新项目,然后在cmd中运行 php artisan serve命令,但这给了我错误无法打开流,这是屏幕截图在这里我运行了 php artisan serve comand 错误,上面的图片中我也尝试过搜索我在堆栈溢出时遇到的问题,但是找不到适合我问题的解决方案

i had recently installed laravel in windows through composer made a new project named project in my xamp's htdocs folder then run "php artisan serve" comand in cmd but it is giving me error "failed to open stream" here is screenshot here I ran "php artisan serve" comand error is shown in above image I also tried to search my problem on stack overflow but couldn't find any solution that can suit my problem

推荐答案

大多数文件丢失了,因为您没有成功安装了Laravel。

Most files are missing because you have not successfully installed Laravel.

转到 C:\xampp\htdocs\project> 并键入 composer update --no-scripts composer install

您正在使用xampp,将所有必需的文件和软件包下载到您的项目后,您应该可以通过localhost访问本地站点,而无需通过运行 php artisan服务 >

Since you are using xampp, once all the necessary files and packages are downloaded to your project you should be able to access your site through localhost without running php artisan serve by visiting

http://localhost/project/public

NB:只要确保xampp正在运行

NB:Just ensure xampp is running

这篇关于laravel运行php artisan serve命令时无法打开流致命错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆