Framework: laravel installer not working with 5.5,0?

Created on 30 Aug 2017  路  5Comments  路  Source: laravel/framework

  • Laravel Version: 5.5.0
  • PHP Version: PHP 7.0.22-0ubuntu0.16.04.1

Description:

I usually do

laravel new blog

to create a new app including the .env file with a generated key. When testing today to check out 5.5 it does not complete the env creation. But there is no error. This is how it usually work, or have I bad memory? I have updated the installer. Running on ubuntu 16.04.

Steps To Reproduce:

laravel new blog

Most helpful comment

I didnt have access to composer self-update but old composer was indeed the issue. I used the following process to make it work.

sudo apt-get remove composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/bin/composer
laravel new blog

Thanks to all!

All 5 comments

composer global update

edit:

oops sorry. didn't read the whole thing

Try running a composer self-update to update to the latest version of Composer.

I didnt have access to composer self-update but old composer was indeed the issue. I used the following process to make it work.

sudo apt-get remove composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '669656bab3166a7aff8a7506b8cb2d1c292f042046c5a994c43155c0be6190fa0355160742ab2e1c88d40d5be660b410') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
mv composer.phar /usr/bin/composer
laravel new blog

Thanks to all!

While @ajthinking 's answer solved the issue for me as well, it's better to follow install instructions from the original source: https://getcomposer.org/download/

WARNING: Please do not redistribute the install code. It will change with every version of the installer. Instead, please link to this page [...]

I found running composer global update as solution for this issue, but actually running composer global self-update solved the issue for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

shopblocks picture shopblocks  路  3Comments

lzp819739483 picture lzp819739483  路  3Comments

JamborJan picture JamborJan  路  3Comments

Fuzzyma picture Fuzzyma  路  3Comments

klimentLambevski picture klimentLambevski  路  3Comments