dongqian5384 2013-10-07 05:11
浏览 645
已采纳

如何从Composer中全局删除包?

I ran this command to install globally PHPUnit:

composer global require 'phpunit/phpunit=3.7.*'

Now I want to uninstall globally PHPUnit.

Any ideas?

  • 写回答

2条回答 默认 最新

  • dongxieting9623 2013-10-07 11:07
    关注

    To remove a globally installed package run:

    composer global remove phpunit/phpunit
    

    global command lets you to run many commands like install, require or update as if you were running them from the COMPOSER_HOME directory.

    Read the related documentation here: http://getcomposer.org/doc/03-cli.md#global

    COMPOSER_HOME depends on your system (on Linux it's ~/.composer), see http://getcomposer.org/doc/03-cli.md#composer-home for more details.

    本回答被题主选为最佳回答 , 对您是否有帮助呢?
    评论
查看更多回答(1条)

报告相同问题?