$ composer create-project --prefer-dist laravel/laravel="5.8.*" larastart
it's not working and I tried some other ways too but not worked for me
This is the error I am getting:
Content-Length mismatch, received 188377 bytes out of the expected 620920 repo.packagist.org could not be fully loaded, package information was loaded from the local cache and may be out of date
OS Name Microsoft Windows 10 Home Single Language
Version 10.0.18363 Build 18363
Other OS Description Not Available
OS Manufacturer Microsoft Corporation
System Name DESKTOP-7CV9HTK
System Manufacturer HP
System Model HP ENVY Laptop 13-ah1xxx
System Type x64-based PC
System SKU 5HZ05PA#AKL
Processor Intel(R) Core(TM) i7-8565U CPU @ 1.80GHz, 1992 Mhz, 4 Core(s), 8 Logical Processor(s)
BIOS Version/Date Insyde F.12, 11/8/2018
SMBIOS Version 3.0
Embedded Controller Version 69.72
BIOS Mode UEFI
BaseBoard Manufacturer HP
BaseBoard Product 850B
BaseBoard Version 69.72
Platform Role Mobile
Secure Boot State On
PCR7 Configuration Elevation Required to View
Windows Directory C:\WINDOWS
System Directory C:\WINDOWS\system32
Boot Device \Device\HarddiskVolume2
Locale United States
Hardware Abstraction Layer Version = "10.0.18362.387"
User Name DESKTOP-7CV9HTK\Hanifullah Jamalzai
Time Zone Afghanistan Standard Time
Installed Physical Memory (RAM) 16.0 GB
Total Physical Memory 15.8 GB
Available Physical Memory 9.89 GB
Total Virtual Memory 18.2 GB
Available Virtual Memory 10.3 GB
Page File Space 2.38 GB
Page File C:\pagefile.sys
Kernel DMA Protection Off
Virtualization-based security Not enabled
Device Encryption Support Elevation Required to View
Hyper-V - VM Monitor Mode Extensions Yes
Hyper-V - Second Level Address Translation Extensions Yes
Hyper-V - Virtualization Enabled in Firmware Yes
Hyper-V - Data Execution Protection Yes
To install the old version of Laravel, the easiest way is to use the composer create-project command. Using this command we only have to specify the project name and Laravel version that we want it to be installed and there you go it's ready.
Via Download Once Composer is installed, download the 4.2 version of the Laravel framework and extract its contents into a directory on your server. Next, in the root of your Laravel application, run the php composer. phar install (or composer install ) command to install all of the framework's dependencies.
For instance, laravel new blog will create a directory named blog containing a fresh Laravel installation with all of Laravel's dependencies already installed: Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create - project --prefer-dist laravel/laravel blog "5.8.*"
To install Laravel 5.8, you will first have to download the Laravel installer using Composer via the following command: Note: Place Composer’s vendor bin directory in $PATH so that Laravel 5.8 installer.exe can be easily located on your local system.
Alternatively, you may also install Laravel by issuing the Composer create-project command in your terminal: composer create - project --prefer-dist laravel/laravel blog "5.8.*" If you have PHP installed locally and you would like to use PHP's built-in development server to serve your application, you may use the serve Artisan command.
Server Requirements for Installing Laravel 5.8. Before installing 5.8, you need to make sure you are working on a Laravel Homestead virtual machine as it fulfills all the critical system requirements. If you are not using Homestead, your server should fulfill the following requirements: PHP: 7.1.3 or greater.
you can try this:
composer create-project --prefer-dist laravel/laravel projectName "5.8.*"
it requires a double quotes over Laravel version (e.g. 5.8.*) for most systems.
If you have composer installed you can simply use following command:
composer create-project --prefer-dist laravel/laravel <your_project_name> "5.8.*"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With