What's the cleanest way to remove Homestead and Vagrant from a Windows system?

后端 未结 3 1787
陌清茗
陌清茗 2021-02-01 04:05

I followed the instructions in Laravel docs to install Vagrant and Homestead on Windows 10, but now I\'ve decided to move the whole development stuff to another dedicated server

3条回答
  •  自闭症患者
    2021-02-01 04:39

    Virtual Machine

    Remove the homestead VM by running

    vagrant box remove laravel/homestead
    

    Homestead

    If you installed Homestead via composer with the following command:

    composer global require laravel/homestead
    

    run the opposite to remove it:

    composer remove laravel/homestead
    

    This will remove the .composer/vendor/laravel directory, including its 'homestead' subdirectory. The 'global' keyword is not required.

    On a Mac or Linux system, the Homestead configuration files can be removed by deleting the '~/.homestead' directory. You may need to hunt a little to find the directory on your Windows system. Don't worry too much if you can't find it; the directory is small and innocuous.


    Composer

    Composer is usually installed as a Windows application; check Add/Remove programs (or the Windows 10 equivalent) to uninstall it.

    If you installed Composer manually and it does not appear in your list of installed apps, simply remove the 'composer' binary and the configuration directory (~/.composer on Mac/Linux systems).

提交回复
热议问题