Support the ongoing development of Laravel.io →
Laravel.io Laravel
0
moderator

Hello @suhasiniravichandran

How did you install the installer? I looks like something went wrong because it need some missing files.

Addition you can try a composer global install and/or a composer global update to try to fix it.

0

Hello @tvbeek

I tried to install the laravel via composer global require "laravel/installer" , also i tried composer global install and composer global update but it gives the same error

Here is the more detailed log.

Changed current directory to /root/.config/composer Loading composer repositories with package information Info from https://repo.packagist.org: #StandWithUkraine Updating dependencies Nothing to modify in lock file Installing dependencies from lock file (including require-dev) Package operations: 13 installs, 0 updates, 0 removals

  • Installing symfony/polyfill-php80 (v1.27.0): Extracting archive
  • Installing symfony/process (v5.4.24): Extracting archive
  • Installing symfony/polyfill-mbstring (v1.27.0): Extracting archive
  • Installing symfony/polyfill-intl-normalizer (v1.27.0): Extracting archive
  • Installing symfony/polyfill-intl-grapheme (v1.27.0): Extracting archive
  • Installing symfony/polyfill-ctype (v1.27.0): Extracting archive
  • Installing symfony/string (v5.4.22): Extracting archive
  • Installing symfony/deprecation-contracts (v2.5.2): Extracting archive
  • Installing psr/container (1.1.2): Extracting archive
  • Installing symfony/service-contracts (v2.5.2): Extracting archive
  • Installing symfony/polyfill-php73 (v1.27.0): Extracting archive
  • Installing symfony/console (v5.4.24): Extracting archive
  • Installing laravel/installer (v4.5.0): Extracting archive 0/3 [>---------------------------] 0% Skipped installation of bin bin/laravel for package laravel/installer: file not found in package Generating autoload files

In ClassMapGenerator.php line 129:

Could not scan for classes inside "/root/.config/composer/vendor/symfony/polyfill-php73/Resources/stubs" which does not appear to be a
file nor a folder

It skipped the installation of bin folder when laravel installed, i don't know why. please help me to solve it.

0

Sign in to participate in this thread!

Eventy

Your banner here too?

Moderators

We'd like to thank these amazing companies for supporting us

Your logo here?

Laravel.io

The Laravel portal for problem solving, knowledge sharing and community building.

© 2024 Laravel.io - All rights reserved.