【问题标题】: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.

【问题讨论】:

  • 你要运行什么命令?
  • 我想安装 Laravel 5

标签: 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

【讨论】:

    猜你喜欢
    • 2016-06-20
    • 2020-05-30
    • 2018-01-25
    • 2019-08-22
    • 2021-01-08
    • 2017-03-09
    • 2021-10-31
    • 2021-12-20
    • 2021-01-01
    相关资源
    最近更新 更多