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

Created on 2 Sep 2017  路  7Comments  路  Source: laravel/framework

  • Laravel Version: 5.5.1
  • PHP Version: 7.1.7
  • Database Driver & Version:

Description: On a fresh installation once the application has been created and during

@php -r "file_exists('.env') || copy('.env.example', '.env');"

I got the following error

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

run-script [--timeout TIMEOUT] [--dev] [--no-dev] [-l|--list] [--] [

All 7 comments

Have you updated the installer?

@Dylan-DPC Yes updating fixes the issue. Thank you :-)

 Updating laravel/installer (v1.3.7 => v1.4.1): Downloading (100%)

please close the issue then @jagadeshanh :)

As I have commented on here, the solution is to do a composer global update before laravel new <project-name>

@gayansanjeewa Thanks man! It works I did updated laravel installer and it worked fine for me.

Thanks.

Thanks.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Fuzzyma picture Fuzzyma  路  3Comments

shopblocks picture shopblocks  路  3Comments

felixsanz picture felixsanz  路  3Comments

digirew picture digirew  路  3Comments

YannPl picture YannPl  路  3Comments