gpt4 book ai didi

php - 宅基地 laravel Vagrant 不允许窗口

转载 作者:行者123 更新时间:2023-12-05 08:34:29 28 4
gpt4 key购买 nike

我试图在 Windows 7 上设置 homestead laravel vagrant,但出现此错误:

C:/HashiCorp/Vagrant/embedded/lib/ruby/2.0.0/psych.rb:205:in `parse':
(<unknown>): mapping values are not allowed in this context at line 13
column 9 (Psych::SyntaxError)

这是我的 yaml 文件:

authorize: C:/Users/Netanel/.ssh/id_rsa.pub

keys:
- C:/Users/Netanel/.ssh/id_rsa

folders:
- map:C:/projects
to: /home/vagrant/projects

sites:
- map: test.com
to: /home/vagrant/projects/test/public

variables:
- key: APP_ENV
value: local

最佳答案

问题是 map: 后没有空格。你有:

folders:
- map:C:/projects
to: /home/vagrant/projects

应该是:

folders:
- map: C:/projects
to: /home/vagrant/projects

关于php - 宅基地 laravel Vagrant 不允许窗口,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/26583222/

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