Laravel 5.3 storage:link -> symlink(): Protocol error

非 Y 不嫁゛ 提交于 2019-12-03 11:25:04

问题


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

回答1:


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?




回答2:


Run cmd as Super Admin.

php artisan storage:link is OK.




回答3:


First close vagrant with vagrant halt command, then run cmd as administrator, go to your homestead folder, start Vagrant with vagrant up and then you can run php artisan storage:link. For me it worked :)




回答4:


Try to run php artisan storage:link from host machine. This will wok




回答5:


You must login as cmd administrator, to do this click on the windows key and X. Then select the administrator system symbol. Do not forget to give her vagrant halt at the other terminal.



来源:https://stackoverflow.com/questions/39496598/laravel-5-3-storagelink-symlink-protocol-error

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!