记一次报错 symlink(): Protocol error 问题处理
环境
window 10
报错
执行
php artisan storage:link
报错
vagrant@homestead:~/Code/rental$ php artisan storage:link
ErrorException : symlink(): Protocol error
at /home/vagrant/Code/rental/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:263
259| */
260| public function link($target, $link)
261| {
262| if (! windows_os()) {
> 263| return symlink($target, $link);
264| }
265|
266| $mode = $this->isDirectory($target) ? 'J' : 'H';
267|
Exception trace:
1 symlink("/home/vagrant/Code/rental/storage/app/public", "/home/vagrant/Code/rental/public/storage")
/home/vagrant/Code/rental/vendor/laravel/framework/src/Illuminate/Filesystem/Filesystem.php:263
2 Illuminate\Filesystem\Filesystem::link("/home/vagrant/Code/rental/storage/app/public", "/home/vagrant/Code/rental/public/storage")
/home/vagrant/Code/rental/vendor/laravel/framework/src/Illuminate/Foundation/Console/StorageLinkCommand.php:35
Please use the argument -v to see more details.
解决方法
以管理员身份运行命令行执行 vagrant up
参考
本作品采用《CC 协议》,转载必须注明作者和本文链接