0
1

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.

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

Posted at

#Could not find a matching version of package “laravel/install”でつまづいた点

##背景
Laravelのインストールの際に添付のエラーが出たので、そのときの対処法をまとめます。

エラー
$ composer global require “laravel/install”

[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).           

動作環境

OS : macOS Mojave 10.14.6
Composer version 1.10.6

結論

コマンドが間違えていたようでした.

composer global require "laravel/installer"
composer global require "laravel/install"

原因

公式サイトを調べて見ると以下の記述がありましたので
"laravel/installer"が正しいようです.

composer global require "laravel/installer=~1.1"
0
1
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
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?