公式アカウントからの投稿が始まります

MacでLaravel環境構築中にエラーが出て先に進めずにいます。
参考にしているサイト:https://entsukablog.com/laravelsetup-formac/

ーーーーー

Command Line Tools (バージョン2373)

Homebrew (バージョン2.2.11)

Composer(バージョン1.10.1)
の順でインストールしました。

ーーーーー

その後ターミナル上に

composer global require “laravel/install”

と入力すると

ーーーーー

[RuntimeException]
No composer.json present in the current directory, this may be the cause of
the following exception.


[InvalidArgumentException]
Could not find a matching version of package “laravel/install”. Check the p
ackage spelling, your version constraint and that the package is available
in a stability which matches your minimum-stability (stable).

ーーーーー

と赤枠の表示がでます。


「Laravel入門」という本には

composer global require “laravel/install=~1.1”

と入力すると記載があるのですが、これを入力するべきでしょうか?
間違った入力をして元に戻せなくなるのが怖いので試していません。

アドバイス頂けたら嬉しいです。
どうぞよろしくお願いします。

「Laravelインストール中のエラー[R」の質問画像

A 回答 (1件)

composer global require laravel/installer


では。
https://readouble.com/laravel/6.x/ja/installatio …
    • good
    • 0
この回答へのお礼

助かりました

ありがとうございます。インストールできました。

お礼日時:2020/04/15 11:52

お探しのQ&Aが見つからない時は、教えて!gooで質問しましょう!