gpt4 book ai didi

windows - .homestead 和 Homestead.yaml 在运行 bash init.bat 后都没有出现

转载 作者:可可西里 更新时间:2023-11-01 11:24:37 26 4
gpt4 key购买 nike

我使用 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

最佳答案

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

关于windows - .homestead 和 Homestead.yaml 在运行 bash init.bat 后都没有出现,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42775652/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com