Error on installing laravel

Error on installing laravel

laravel new molanastoneCrafting application...
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - Installation request for symfony/thanks v1.0.1 -> satisfiable by symfony/thanks[v1.0.1].
    - symfony/thanks v1.0.1 requires composer-plugin-api ^1.1 -> no matching package found.

Potential causes:
 - A typo in the package name
 - The package is not available in a stable-enough version according to your minimum-stability setting
   see <https://getcomposer.org/doc/04-schema.md#minimum-stability> for more details.

Read <https://getcomposer.org/doc/articles/troubleshooting.md> for further common problems.
Application ready! Build something amazing.

 


My Solution was:

1. cd /usr/local/bin

2. php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"

3. php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;" 

4. php composer-setup.php

5. php -r "unlink('composer-setup.php');"

6. export PATH="$PATH:$HOME/.config/composer/vendor/bin"

7. cd /var/www/html

8. laravel new blog

 

 

اشتراک گذاری