Laravel 5.3存储:链接-> symlink():协议错误 [英] Laravel 5.3 storage:link -> symlink(): Protocol error

查看:232
本文介绍了Laravel 5.3存储:链接-> symlink():协议错误的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试运行以下工匠命令:

php artisan storage:link

我收到此错误:

[ErrorException] symlink(): Protocol error

您能帮我解决这个问题吗?

这是我的设置:

  • 使用带有Homestead(v0.5.0)框的流浪汉的Windows 10
  • Ubuntu 16.04 LTS(GNU/Linux 4.4.0-22-通用x86_64)
  • Laravel Framework版本5.3.6
  • PHP 7.0

解决方案

您的问题可能是您必须以系统管理员的身份启动流浪汉.

因此点击开始键入"cmd",右键单击它,选择以管理员身份运行".导航到您的项目,输入"vagrant up".重试该命令.

在Homestead上创建符号链接?

I'm trying to run the following artisan command:

php artisan storage:link

I get this error:

[ErrorException] symlink(): Protocol error

Can you help me to solve this.

This is my setup:

  • Windows 10 using vagrant with Homestead (v0.5.0) box
  • Ubuntu 16.04 LTS (GNU/Linux 4.4.0-22-generic x86_64)
  • Laravel Framework version 5.3.6
  • PHP 7.0

解决方案

Your problem probably is that you have to start your vagrant box as a system administrator.

So hit start type "cmd", right click it choose "Run as administrator". Navigate to your project, type "vagrant up". Retry the command.

Creating symbolic link on Homestead?

这篇关于Laravel 5.3存储:链接-> symlink():协议错误的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆