douxin1884
2016-01-18 14:43
浏览 43
已采纳

可以找出为什么laravel试图在mac os中运行apt-get

I am very new to Laravel and I have been assigned to work on a laravel app.

I installed composer and when i do composer install or composer update i see this in the terminal:

> php artisan optimize
  Generating optimized class loader
> php artisan test:setup
  sudo apt-get install -y xvfb firefox chromium-browser chromium-chromedriver
  Password:

I don't understand why it is running that command on my mac? How can i disable that?

图片转代码服务由CSDN问答提供 功能建议

我是Laravel的新手,我被分配到一个laravel应用程序。

我安装了作曲家,当我做作曲家安装或作曲家更新时,我会在终端中看到:

 >  php artisan optimize 
生成优化的类加载器
>  php artisan测试:setup 
 sudo apt-get install -y xvfb firefox chromium-browser chromium-chromedriver 
密码:
   
 
 

我不明白为什么它 在我的Mac上运行该命令? 我怎样才能禁用它?

  • 写回答
  • 关注问题
  • 收藏
  • 邀请回答

1条回答 默认 最新

  • dongwopu8210 2016-01-18 15:00
    已采纳

    You are running an artisan command test:setup. As far as i know that is not a standard laravel artisan command.

    Someone in that project probably made a custom command in the app/commands folder that installs those packages for you so you are able to run certain custom tests.

    If you want to remove it: Look inside the app/commands or search your project for a file like testCommand.php and disable the code.

    You can read more about artisan commands in the docs.

    打赏 评论

相关推荐 更多相似问题