<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>composer &#8211; FITSブログ</title>
	<atom:link href="https://blog.fits-inc.jp/tag/composer/feed/" rel="self" type="application/rss+xml" />
	<link>https://blog.fits-inc.jp</link>
	<description>Webシステムの受託開発でお困りなら</description>
	<lastBuildDate>Tue, 10 Dec 2019 12:52:56 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0.1</generator>

<image>
	<url>https://blog.fits-inc.jp/wp-content/uploads/2024/06/cropped-image-5-32x32.png</url>
	<title>composer &#8211; FITSブログ</title>
	<link>https://blog.fits-inc.jp</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>Windows環境でcomposerを使用したときに出たエラー（解消済み）</title>
		<link>https://blog.fits-inc.jp/2019/12/10/windows%e7%92%b0%e5%a2%83%e3%81%a7composer%e3%82%92%e4%bd%bf%e7%94%a8%e3%81%97%e3%81%9f%e3%81%a8%e3%81%8d%e3%81%ab%e5%87%ba%e3%81%9f%e3%82%a8%e3%83%a9%e3%83%bc%ef%bc%88%e8%a7%a3%e6%b6%88%e6%b8%88/</link>
		
		<dc:creator><![CDATA[FITS Admin]]></dc:creator>
		<pubDate>Tue, 10 Dec 2019 12:52:55 +0000</pubDate>
				<category><![CDATA[ブログ]]></category>
		<category><![CDATA[composer]]></category>
		<category><![CDATA[Windows]]></category>
		<guid isPermaLink="false">http://blog.fits-inc.jp/?p=304</guid>

					<description><![CDATA[Composer といえば、PHPのパッケージ管理と依存関係の解消を行ってくれる便利ツールだけど、Windows 環境で使っていて思わぬエラーを踏んだのでメモを残しておく。 まず、Composer のインストールについて [&#8230;]]]></description>
										<content:encoded><![CDATA[
<p class="wp-block-paragraph">Composer といえば、PHPのパッケージ管理と依存関係の解消を行ってくれる便利ツールだけど、Windows 環境で使っていて思わぬエラーを踏んだのでメモを残しておく。</p>



<p class="wp-block-paragraph">まず、Composer のインストールについて、経験則上は、インストール時点でPHPの実行環境が存在していることが多いので、php 越しに composer-setup.phpを実行したり、composer.pharをダウンロードしてきてパスを通す、といったことが多いように思う。</p>



<p class="wp-block-paragraph">しかし、実はWindows環境向けには公式のインストーラーが存在している。</p>



<p class="wp-block-paragraph"><a href="https://getcomposer.org/doc/00-intro.md#installation-windows">https://getcomposer.org/doc/00-intro.md#installation-windows</a></p>



<p class="wp-block-paragraph">こちらからインストールすると composer がインストールされる＆パスが通った状態となり、コマンドプロンプトなどから利用できる。のはずだったが、composerを実行すると下記のようなエラーとなった。</p>



<pre class="wp-block-preformatted">Installing dependencies (including require-dev) from lock file
 Your requirements could not be resolved to an installable set of packages.
 Problem 1
     - Installation request for league/flysystem 1.0.57 -> satisfiable by league/flysystem[1.0.57].
     - league/flysystem 1.0.57 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
   Problem 2
     - league/flysystem 1.0.57 requires ext-fileinfo * -> the requested PHP extension fileinfo is missing from your system.
     - league/flysystem-aws-s3-v3 1.0.23 requires league/flysystem ^1.0.40 -> satisfiable by league/flysystem[1.0.57].
     - Installation request for league/flysystem-aws-s3-v3 1.0.23 -> satisfiable by league/flysystem-aws-s3-v3[1.0.23].
 To enable extensions, verify that they are enabled in your .ini files:
     - C:\php\php.ini
   You can also run <code>php --ini</code> inside terminal to see which files are used by PHP in CLI mode.</pre>



<p class="wp-block-paragraph">エラーメッセージにあるように、composerが必要としているPHPの拡張機能が無効となっているからで php.ini を編集し、</p>



<pre class="wp-block-preformatted">;extension=fileinfo</pre>



<p class="wp-block-paragraph">の先頭のセミコロンを削除（コメントアウトを解除）して</p>



<pre class="wp-block-preformatted">extension=fileinfo </pre>



<p class="wp-block-paragraph">とすることでエラーが解消された。</p>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
