Be part of JetBrains PHPverse 2026 on June 9 – a free online event bringing PHP devs worldwide together.

Donika's avatar

Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist

Hi, i use Laragon and try to create new project, but i have this errors


Installing laravel/laravel (v5.2.31)
  - Installing laravel/laravel (v5.2.31)
    Loading from cache

Created project in project


  [ReflectionException]
  Class Fxp\Composer\AssetPlugin\Repository\NpmRepository does not exist



  [ErrorException]
  Declaration of Fxp\Composer\AssetPlugin\Repository\AbstractAssetsRepository
  ::whatProvides(Composer\DependencyResolver\Pool $pool, $name) should be com
  patible with Composer\Repository\ComposerRepository::whatProvides(Composer\
  DependencyResolver\Pool $pool, $name, $bypassFilters = false)


create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist] [--repository REPOSITORY] [--repository-url REPOSITORY-URL] [--dev] [--no-dev] [--no-plugins] [--no-custom-installers] [--no-scripts] [--no-progress] [--keep-vcs] [--no-install] [--ignore-platform-reqs] [--] [<package>] [<directory>] [<version>]


-----------------------
Error: Could not create project "project". Please try again!
-----------------------
Not enough storage is available to process this command.

Can some help please.

0 likes
1 reply
Donika's avatar

Update.

php composer.phar global update fxp/composer-asset-plugin --no-plugins
composer global require fxp/composer-asset-plugin --no-plugins

and all ok.

Please or to participate in this conversation.