How do I uninstall composer on my Mac?

Source: Internet
Author: User
Tags macbook
Title, Mac installed composer, but for some reason, I want to uninstall composer, online is how to install composer tutorial. Ask you, how to uninstall the installed composer on the MacBook?

Reply content:

Title, Mac installed composer, but for some reason, I want to uninstall composer, online is how to install composer tutorial. Ask you, how to uninstall the installed composer on the MacBook?

rm -rf /usr/bin/composer
rm -rf /usr/local/bin/composer.phar

I don't have composer on my Mac, but you can try to find out if there are any composer in the app. Some words are deleted.
Because essentially composer is a Composer.phar file, even if the installation file is not installed composer, as long as the copy Composer.phar this file is placed in the root directory of the corresponding project can also be run, The composer installation file actually adds a shell to the file.

You just have to find the location of the file you downloaded composer.phar and delete it. If you are a global installation, the path isusr/local/bin/composer.phar

First of all... We have to know before we 你是怎么安装的 can tell you how to uninstall AH Soul light!!!

But in theory, the execution whereis composer looks where it is composer , and then sudo rm /path/composer

Find/-name composer then RM-RF

  • Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.