Php 无法在putty命令行中运行编写器更新

Php 无法在putty命令行中运行编写器更新,php,laravel,composer-php,Php,Laravel,Composer Php,在我的本地目录中,我刚刚安装了用于发送laravel电子邮件的beautymail,但当我转到putty应用程序并键入composer require snowfire/beautymail dev master时,会出现以下错误: ubuntu@ip-172-31-16-16:/var/www/html/domain-payment$ composer require snowfire/beautymail dev-master ./composer.json has been updated

在我的本地目录中,我刚刚安装了用于发送laravel电子邮件的beautymail,但当我转到putty应用程序并键入
composer require snowfire/beautymail dev master
时,会出现以下错误:

ubuntu@ip-172-31-16-16:/var/www/html/domain-payment$ composer require snowfire/beautymail dev-master
./composer.json has been updated
Loading composer repositories with package information
Updating dependencies (including require-dev)
Nothing to install or update
Generating optimized autoload files
> Illuminate\Foundation\ComposerScripts::postAutoloadDump
> @php artisan package:discover --ansi

In ProviderRepository.php line 208:

  Class 'Snowfire\Beautymail\BeautymailServiceProvider' not found


Script @php artisan package:discover --ansi handling the post-autoload-dump event returned with error code 1

Installation failed, reverting ./composer.json to its original content.
我怎样才能解决这个问题?我已经将代码推送到repo,然后我想安装beautymail包,因为在我的本地目录中,我已经发布了beautymail的资产。谁能告诉我该怎么办?谢谢。

添加此文件

composer.json

"require": {
   "snowfire/beautymail": "dev-master"
}
然后运行此命令

composer install

删除供应商文件夹,然后安装composer

composer install

您在本地运行
composer require
来构建
composer.json
composer.lock
文件,锁在您的repo和服务器上结束,您在服务器上运行
composer install
,使包与锁文件中的包匹配;您不需要在服务器上运行
composer update
composer require
,请尝试此操作。我已经在本地目录中执行了此操作,长官,并将其推送到repo。每当我在putty中运行composer update或install时,beautymail包都不包含在其中。如果您不在服务器上运行
composer update
,您就不会更新服务器上的依赖项。如果您将该服务提供商添加到
config/app.php
,则可以删除它。。如果安装了此软件包,它将使用自动发现,这将为您注册提供程序。。这也将允许您访问您的应用程序,暂时不会出现该错误