【发布时间】:2020-02-27 19:36:00
【问题描述】:
我在 Windows 10 机器上以管理员身份运行 gitbash 命令。
我导航到 homestead 目录:cd homestead
我开始流浪:vagrant up
我 ssh 进入虚拟机:vagrant ssh
我导航到项目目录:cd project1
我运行符号链接命令:php artisan storage:link
我收到错误:ErrorException : symlink(): Input/output error
为什么这不起作用?
请注意,我还通过将此代码添加到以下部分来更新 homestead 目录中的 vagrantfile:
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config|
// other stuff
config.vm.provider "virtualbox" do |v|
v.customize ["setextradata", :id, "VBoxInternal2/SharedFoldersEnableSymlinksCreate/v-root", "1"]
end
end
请注意,我还安装了 vagrant-winnfsd 插件,并且在我的 yaml 文件中有以下内容 - 不确定这是否有任何影响:
folders:
- map: c:\code\project1
to: /home/vagrant/project1
type: "nfs"
任何帮助表示赞赏。
【问题讨论】:
标签: vagrant symlink homestead laravel-6.2