Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
jagadeshanh opened this issue Sep 2, 2017 · 7 comments

Comments

@jagadeshanh
Copy link

  • 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] [--] [<script>] []...

Steps To Reproduce:

l5-error
laravel new laravel55

@Dylan-DPC-zz
Copy link

Have you updated the installer?

@jagadeshanh
Copy link
Author

jagadeshanh commented Sep 2, 2017

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

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

@huglester
Copy link
Contributor

please close the issue then @jagadeshanh :)

@gayansanjeewa
Copy link

gayansanjeewa commented Sep 5, 2017

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

@jagadeshanh
Copy link
Author

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

@ghost
Copy link

ghost commented Oct 25, 2017

Thanks.

1 similar comment
@lightgh
Copy link

lightgh commented Oct 28, 2017

Thanks.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants