【问题标题】:.homestead nor Homestead.yaml is showing up after running bash init.bat运行 bash init.bat 后显示 .homestead 和 Homestead.yaml
【发布时间】:2017-03-14 00:06:59
【问题描述】:

我使用 git clone https://github.com/laravel/homestead.git Homestead 从 git bash 将 homestead 文件夹放入 Documents 文件夹中。当我 cd 进入 Homestead 文件夹并运行 bash init.bat 时,它会显示它并且不会创建 .homestead 文件夹

$ bash init.bat;
init.bat: line 1: @echo: command not found
init.bat: line 3: syntax error near unexpected token `newline'
init.bat: line 3: `if ["%~1"]==["json"] ('

如果我运行 bash init.sh 它会显示:

$ bash init.sh;
cp: cannot stat 'src/stubs/Homestead.yaml': No such file or directory
cp: cannot stat 'src/stubs/after.sh': No such file or directory
cp: cannot stat 'src/stubs/aliases': No such file or directory
Homestead initialized!

但没有出现.homestead 文件夹或Homestead.yaml

【问题讨论】:

    标签: windows laravel homestead


    【解决方案1】:

    不要在 git bash 中运行它。在 Windows 的命令行中运行它。或者更好的是,只需双击 init.bat,它就会相对于您的 Windows 主目录为您运行它。

    【讨论】:

      【解决方案2】:

      看来你是通过powershell而不是cmd尝试的。试试 CTRL+R -> cmd -> init.bat

      【讨论】:

        猜你喜欢
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 1970-01-01
        • 2016-08-19
        • 1970-01-01
        • 2017-09-06
        • 1970-01-01
        相关资源
        最近更新 更多