Shawdow's avatar

Installing the Laravel New Project error ecountered

command for create a new Project Name test

sudo composer create-project laravel/laravel test  --prefer-dist

error shown

Installing laravel/laravel (v5.5.28)
  - Installing laravel/laravel (v5.5.28)
    Downloading: 100%         

Created project in test
Loading composer repositories with package information
Updating dependencies (including require-dev)
Your requirements could not be resolved to an installable set of packages.

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

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.
0 likes
15 replies
tisuchi's avatar

Have you tried with that?

composer create-project laravel/laravel test
4 likes
Shawdow's avatar

@tisuchi same error

Your requirements could not be resolved to an installable set of packages.

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

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.
Shawdow's avatar

@tisuchi when i tried with composer update

You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Composer could not find a composer.json file in /var/www/html
To initialize a project, please create a composer.json file as described in the https://getcomposer.org/ "Getting Started" section
Vijay's avatar

I think, you're using old version of composer. Update your composer.

Try:

composer self-update

Then:

Install laravel 5.5

Shawdow's avatar

@Vijay tried with your command

[InvalidArgumentException]             
  Command "self-update" is not defined. 
Vijay's avatar

Try re-installing the composer with latest version.

Are you using Windows or Ubuntu?

Shawdow's avatar

@Vijay

i think the composer must not be the problem when i check with version it shows

composer --version
You are running composer with xdebug enabled. This has a major impact on runtime performance. See https://getcomposer.org/xdebug
Composer version @package_branch_alias_version@ (1.0.0-beta2) 2016-03-27 16:00:34
Shawdow's avatar

@Vijay Yeah I am using Linux when i installed composer it has been installed with beta version how shall i install the stable version

Shawdow's avatar

@Vijay

I have removed composer installed with above command

curl -sS https://getcomposer.org/installer | sudo php -- --install-dir=/usr/local/bin --filename=composer
All settings correct for using Composer
Downloading...

Composer (version 1.5.6) successfully installed to: /usr/local/bin/composer
Use it: php /usr/local/bin/composer

But when i typed

 composer --version

bash: /usr/bin/composer: No such file or directory

whoops!!

Vijay's avatar

Type composer in terminal.

Add composer to PATH variable.

Or

Try this:

php /usr/local/bin/composer --version
Shawdow's avatar

@Vijay It is working composer installed in /usr/local/bin directory it is not installed globally I need go to /usr/local/bin directory that i should type composer!!

composer --version
Composer version 1.5.6 2017-12-18 12:09:18
Vijay's avatar

Try this:

mv /usr/local/bin/composer /usr/bin/

And run composer without going to bin directory.

1 like

Please or to participate in this conversation.