Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Проблема с composer #7

Open
russeljo opened this issue Oct 12, 2021 · 0 comments
Open

Проблема с composer #7

russeljo opened this issue Oct 12, 2021 · 0 comments

Comments

@russeljo
Copy link

В общем возникла проблема с composer, в репо использовался composer 1, а сейчас composer 2 актуален и при composer install или update вылезает исключение.
Помогло это решение:
В файл composer.json в секцию config добавить:

"fxp-asset": {
  "enabled": false
}

В этом же файле убрать секции extra и scripts и добавить секцию repositories:
"repositories":

[
  {
    "type": "composer",
    "url": "https://asset-packagist.org"
  }
]

В файле /config/web.php добавить алиасы:

'aliases' => [
  '@bower' => '@vendor/bower-asset',
  '@npm'   => '@vendor/npm-asset'
]

Рекомендуется удалить composer.lock и vendor

Выполнить:


composer install
// Или
composer update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant