How to install Laravel via Laravel Installer on Windows?

前端 未结 7 806
故里飘歌
故里飘歌 2020-12-12 11:25

I’m trying to install the Laravel Framework on Windows with the Laravel Installer method.

In the documentation I found the following:

7条回答
  •  南笙
    南笙 (楼主)
    2020-12-12 11:38

    If you are having trouble using the command prompt, use the GUI approach:

    The path in Windows is:

    C:\Users\UserName\AppData\Roaming\Composer\vendor\bin

    In the above path "UserName" is your user name that you are logged in your computer as. If you don't know your username, go here: http://library.queensu.ca/libguides/computers/windows-username-check.htm

    Copy the above path, replace the "UserName" with your username.

    Then go to your computer's environment variables. Here's how:

    1. Right click on your Computer and go to properties
    2. Go to Advanced system settings
    3. Under Advanced Tab, Click on Environment Variables

    Under User Variables, select Path and click Edit:

    Put a semicolon at the end of the existing text and paste your path, example:C:\ProgramData\ComposerSetup\bin. Press OK ...

    Restart your command prompt and type laravel and hit enter. If the path was successfully set, you will see "Laravel Installer Version ... "

提交回复
热议问题