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
Related
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
When it i first time installed laravel using
composer global require laravel/installer
it shows the version of 2.1.0 not the latest version?
How to fix this problem? i know i can install specific laravel version with
`composer create-project laravel/laravel="6.0.*" appName`
It's annoying cause in the terminal it still shows the version of 2.1.0
The latest version of Laravel installer as of the moment is 2.1.0. Just take note that it is not same with the Laravel framework that will be installed. They're two separate entities.
hat it is not same with the Laravel framework
laravel -V
it gives you laravel installer version
php artisan --version
You get laravel framework version.For you then show it laravel framework 6.
I did a fresh Laravel 6.0.3 install on laragon and I am trying to install backpack.
I did
composer require backpack/crud correclty
but then when I tried to do the next step
php artisan backpack:base:install
I get an error
Symfony\Component\Process\Exception\ProcessFailedException : The command "composer require backpack/generators --dev" failed.
Exit Code: 2(Misuse of shell builtins)
I tried to delete the cache, to add timeout 600 and I do not know what else to do.
There was indeed a problem with installing backpack/generators - composer did not fall back to an appropriate version, but it is now fixed. You should be able to run php artisan backpack:base:install without problems.
If you hit any roadblocks during the installation, I recommend you follow the manual installation procedure, instead of php artisan backpack:base:install.
Backpack v3.4 is a collection of packages for Laravel 5.5 / 5.6.
Right under requirement in Backpack.io it says it requires laravel 5.5 or 5.6 and PHP7.
It's not compatible with laravel 6.*
After updating Laravel from 5.1 to 5.2, using composer update command, files composer.json and composer.lock have correct versions (5.2) written under laravel/framework. But the problem is, once I run php artisan --version in CLI it outputs Laravel Framework version 5.1.45 (LTS) and that confuses me.
Is there a way to be sure which version is now installed and being used?
I'm facing this issue. I have a problem that
phpinfo() shows me 5.5.11 version is installed.
But while installing laravel 5.2 through composer it showing me following error,
[InvalidArgumentException] Could not find package laravel/laravel
with version 5.2.* in a version installable using your PHP version
5.5.8.
Laravel 5.2 needs,
PHP >= 5.5.9
OpenSSL PHP Extension
Both are working properly. And My current version is 5.5.11 which is >= 5.5.9 so what is the error. I can't figure it out.
EDIT :-
I have already set environment variable like this,
PATH=%PATH%;C:\xampp\php.
php.exe file in this path in my windows.
plz check your local path , copy your php environment path.
and open the floder with the path, check the php version in this path.
seems you should have differet php version.