Skip to content

Instantly share code, notes, and snippets.

@towfiqpiash
Last active September 10, 2017 10:12
Show Gist options
  • Save towfiqpiash/14096be93d93b31e4b775183c9815140 to your computer and use it in GitHub Desktop.
Save towfiqpiash/14096be93d93b31e4b775183c9815140 to your computer and use it in GitHub Desktop.
Laravel related errors and solutions

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

Solution#1

Run composer global self-update

Solution#2

Update laravel installer version first. To do this, change the version required in ~/config/composer/composer.json from ^1.3 to dev-master, then run composer update laravel/installer.

Now run laravel new lara55 again. It should work

Solution#3

Step 1 - composer self-update

Step 2 - composer global require "laravel/installer"

For PDOException: could not find driver' for MySQL, and if it is debian based os:

Run sudo apt-get -y install php5-mysql

The requested PHP extension ext-curl * is missing from your system. Install or enable PHP's curl extension

Run sudo apt-get install php5-curl

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment