简体   繁体   English

Mac上的Laravel 5.5“ UnexpectedValueException”,安装错误

[英]Laravel 5.5 “UnexpectedValueException” on Mac, installation error

I am a web developer. 我是网页开发人员。 Previously I used to code in Windows, I'm new to Mac. 以前,我曾经在Windows中进行编码,但是我是Mac的新手。 I used Laravel previously many times on Windows, never had this problem. 我以前在Windows上使用过Laravel多次,从未遇到过此问题。 I checked the File Permission on Mac very carefully, both Read/Write permissions are enabled for all along with Enclosed Items . 我非常仔细地检查了Mac上的File Permission,所有的Read / Write权限和Enclosed Items都启用了。

I Googled it, no luck. 我用谷歌搜索,没有运气。 CodeIgniter and WordPress are working very well. CodeIgniter和WordPress运作良好。

Is it possible to fix? 有可能解决吗? I carefully installed Lavael with Composer, the same file are smoothly working on Windows. 我用Composer小心地安装了Lavael,同一文件在Windows上也能正常工作。

I'm using XAMPP . 我正在使用XAMPP

在此处输入图片说明

Follow these steps to change permissions 请按照以下步骤更改权限

  • Open terminal. 打开终端。
  • sudo chmod -R 777 /opt/lampp/htdocs/laravel/storage 须藤chmod -R 777 / opt / lampp / htdocs / laravel / storage
  • sudo chmod -R 777 /opt/lampp/htdocs/laravel/bootstrap 须藤chmod -R 777 / opt / lampp / htdocs / laravel / bootstrap

But for me I prefer to use Vagrant/Homestead, everything is set and ready to go, check this out Homestead/Vagrant 但对我来说,我更喜欢使用Vagrant / Homestead,一切都已准备就绪,可以使用了,请查看Homestead / Vagrant

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM