Can't update laravel installler 1.5.0 from ubuntu 20.04 - laravel

After I installed Laravel 9 in Ubuntu 20.04 (php 7.4 and composer 2.3.10) I run
laravel new proyect1
but it does not work. I got this error: In RequestException.php line 113: Server error: GET http://cabinet.laravel.com/latest.zip resulted in a 522 response
When I searched for the error message, I found this question in StackOverflow:
Why do I get a laravel error while creating a new project?
But the solutions suggested on it did not work for me. Basically, it recommends removing the laravel installer and requiring it again, Basically, it recommends removing the laravel installer and requiring it again, but even when I followed the solution that was suggested, laravel/installer version 1.5.0 appears when I ask for the laravel installer version instead of laravel/installer 4.2.13 version

Related

Problem while installing laravel on windows 10

When I try to install Laravel it gives me an error while displaying
Could not find package Laravel/installer.
It was however found via repository search, which indicates a consistency issue with the repository.
I have already installed composer successfully

Composer version downgrade issue

So I am currently trying to set up an old Laravel project, which requires PHP 7.1. I have successfully downgraded from 8.1 to 7.1, but now the composer issue appears:
I am trying to run composer install on a project, in order to install the dependecies needed, but I am facing the composer version error. After running the suggested command, it basically shows the same error, which does not really make any sense. I have tried other commands but seems like the issue is the same.
I am using MAC.
Any idea?
The message tells you that the current version of Composer installed cannot be run with the current version of PHP installed. Even downgrading is not possible.
To overcome this, you could update PHP again to any supported version (as in: 7.2.5 or later), then downgrade Composer to v2.2, then downgrade PHP again to 7.1.
If you want to ease the switch between PHP versions, you could check for a containerized PHP setup using Docker.

Laravel Installation On Windows by using Composer

I am trying to setup Laravel using Composer through my command prompt but I am getting some errors.
I have already installed Composer and Xampp(php/mysql/apache) but I am still unable to install it. I have followed the exact instructions provide by the Laravel and followed other resources but I am still getting error.

laravel [InvalidArgumentException] Script "post-install-cmd" is not defined in this package

Laravel 5.5 was released yesterday and I am trying to install, but i have a problem after installing the update. The output:
[InvalidArgumentException] Script "post-install-cmd" is not defined in this package"
How can I fix this error?
Do composer global update before laravel new <project-name> and you'll be alright. It will update your laravel installer to its latest version to support Laravel 5.5 LTS.
see comment in Fixed composer's invalid argument exception

Laravel Installation error

I have downloaded laravel from github. I also have composer installed. My problem is when i type in
composer install
I got the following error. I can't fix it.
Have a look at the free laracasts series, this will guide you through the install - without any hiccups!
www.laracasts.com

Resources