3
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 3 years have passed since last update.

Composerインストール済みなのにcomposer: Command not foundになる時の解決方法。

Posted at

Composerインストール済みなのにcomposer: Command not foundの解決できたのでメモ。

作ったWebサイトにTwitter認証させたいなと思い作業を進めました。
Twitter認証はこちらの記事を参考にさせていただきました。

サーバーはさくらのレンタルサーバーを使っています。


ローカル環境では問題なく動いたので、さくらのサーバーにアップしました。 が、ローカルに入れたSocialiteは動きません。Class Socialite Not foundです。

composerはローカルにインストールしててもアップされないので再度Tera Term上でコマンドを叩く必要があります。

composer require laravel/socialite

composer: Command not found。
え?


php composer.phar

Screenshot (551).png

あまり詳しくはないのでよくわからないのですが、composerは問題なく入っているようです。

composer -v

composer: Command not found。
え?

composer --version

composer: Command not found。
え?

何が問題なのかわからず、ググりました。
解決方法。
{プロジェクト名}のディレクトリ上で

php /home/{アカウント名}/{プロジェクト名}/composer.phar require laravel/socialite

Screenshot (553).png

解決できました。

3
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
3
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?