【问题标题】:I got the following error when I run a command with htdocs xampp使用 htdocs xampp 运行命令时出现以下错误
【发布时间】:2018-07-06 09:35:36
【问题描述】:
当我使用 Htdocs xammp 运行命令时出现以下错误
'C:\xampp\htdocs' is not recognized as an internal or external command,
operable program or batch file.
【问题讨论】:
标签:
php
laravel
laravel-5
xampp
【解决方案1】:
1 - 安装作曲家。如果这里还没有安装,最简单的方法是install composer on windows
2 - 通过命令行转到您的 htdocs 文件夹并运行以下命令:composer create-project --prefer-dist laravel/laravel project-name。这将创建一个新文件夹project-name
3 - 通过命令行访问project-name文件夹并运行php artisan serve
4 - 打开浏览器并访问http://localhost:8000