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?

More than 1 year has passed since last update.

PHP:composer.phar 実行時に「Could not open input file: composer.phar」というエラーが出た時の対処。

Posted at

現象

php composer.phar XXX といったコマンドを入力した時、Could not open input file: composer.phar というエラーメッセージが出る。

エラー.hph
Could not open input file: composer.phar

解決策

以下コマンドでを実行

php -r "readfile('https://getcomposer.org/installer');" | php

ダウンロード成功

All settings correct for using Composer
Downloading...

Composer (version 2.5.4) successfully installed to: C:\Users\user\Documents\laravel\composer.phar
Use it: php composer.phar
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?