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

homebrewのインストールで詰まったところ。

Posted at

Macを買い換えたのでhomebrewをインストールしようとしたところ、詰まったので忘備録です。

詰まったところ

基本的には以下のコマンドでうまく行くはずが、、、

brew install docker
brew cask install docker
open /Applications/Docker.app

これやると2行目でError: Unknown command: caskと出てきます。
caskってなに?笑
調べてみると、GUIアプリをCLIでダウンロードできるようにしたものだそうです。
一般的にはPCで何かアプリ(google chromeやlineなどなど)をダウンロードしようとすると、そのサイトに行って、ダウンロードしてインストールするという流れを踏まなければなりません。
それをコマンドで一発でやろうというのがhomebrew-caskらしいです。めっちゃ便利ですね。

でも調べてみると、homebrew-caskはhomebrewをインストールすると自動で入るっぽい?というか標準であるようです。
さらに調べてみるとエラーの原因はコマンドがアップデートされていたことでした。。

結論

旧コマンド

brew cask install docker

新コマンド

brew install docker --cask

これで解決できました!

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?