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

前端 未结 6 687
星月不相逢
星月不相逢 2021-02-04 00:47

I\'m trying to run the following artisan command:

php artisan storage:link

I get this error:

[ErrorException] symlink(): Protocol er

相关标签:
6条回答
  • 2021-02-04 01:28

    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 :)

    0 讨论(0)
  • 2021-02-04 01:34

    In my case I run vagrant as Administrator and is working.

    Do not forget to vagrant halt on other machine and start new as administrator.

    php artisan storage:link
    

    Output:

    The [/home/vagrant/code/public/storage] link has been connected to [/home/vagrant/code/storage/app/public].
    The links have been created.

    0 讨论(0)
  • 2021-02-04 01:43

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

    0 讨论(0)
  • 2021-02-04 01:46

    Run cmd as Super Admin.

    php artisan storage:link is OK.

    0 讨论(0)
  • 2021-02-04 01:47

    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?

    0 讨论(0)
  • 2021-02-04 01:49

    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.

    0 讨论(0)
提交回复
热议问题