0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

EC-CUBE 4.0系でflex.symfony.comのDNSが解決できなかった

Posted at

概要

EC-CUBE 4.0系のプロジェクトで htmlpurifier-bundle をインストールしようとしたところ、以下のエラーが発生しました。

[Composer\Downloader\TransportException]
The "https://flex.symfony.com/aliases.json" file could not be downloaded: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided,
or not known
failed to open stream: php_network_getaddresses: getaddrinfo failed: nodename nor servname provided, or not known

原因

とりあえずググってみたところ、以下の Issue を発見。

🔗 https://github.com/symfony/flex/issues/909

解決法

Issueの通り、以下のコマンドを実行したら無事解決しました。

composer update symfony/flex --no-plugins --no-scripts
composer require exercise/htmlpurifier-bundle:^1.0
# → 成功!

感想
AIくんに聞いても「あなたのDNSの設定が間違えています。」としか言わなかった…。
やっぱり最終的にトラブルを解決できるのは、人間のエンジニアなんだなと実感しました。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?