简体   繁体   English

作曲家需要在 laravel 中显示错误

[英]Composer require showing error in laravel

I have my application running using laravel 5.7 and when I install any package it throws some error.我的应用程序使用 laravel 5.7 运行,当我安装任何 package 时,它会引发一些错误。 I searched the error in the google but I did not get any post which could help me.我在谷歌中搜索了错误,但没有得到任何可以帮助我的帖子。

This is the package I am trying to install:这是我正在尝试安装的 package:

sudo composer require mpdf/mpdf

The php-parse file is available in the path provided. php-parse 文件在提供的路径中可用。 Please help me if anybody has the solution for this如果有人对此有解决方案,请帮助我

Please check the attachment of the error I get请检查我收到的错误的附件

在此处输入图像描述

在此处输入图像描述

There are some things that can go wrong.有一些东西可以 go 出错。 First the folder vendor/bin isn't created because of some missing permission.首先,由于缺少某些权限,因此未创建文件夹vendor/bin So check all you permission on that folder.The next thing create folder to test if it's working.因此,请检查您对该文件夹的所有权限。接下来创建文件夹以测试它是否正常工作。

So the main problem is that directory doesn't exist or can't be created.Create it on your own and run your command again.所以主要问题是该目录不存在或无法创建。您自己创建它并再次运行您的命令。

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

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