LoginSignup
0
0

More than 1 year has passed since last update.

動いていた頃のvoltaをHomebrewでインストールする

Last updated at Posted at 2023-02-05

Voltaは便利だがすぐ動かなくなる。
そこで動いていた過去バージョンのvoltaをHomebrewでインストールする。

手順

さきほどvolta1.1.1(1.1.1_1)が動かなくっていたので、1.1.0をインストールしたときの例。
ARM64 Venturaの環境で1.1.1が動いたと言っている人もいたが、Montereyでは動かなかった。
別の原因かも。

$ brew tap-new $USER/volta
$ brew extract --version=1.1.0 volta $USER/volta
$ brew install $USER/volta/volta@1.1.0
$ volta -v
$ brew developer off

その他の方法

formulaファイルを直接指定する

直接formulaファイルを指定する方法は使えなくなったらしい。
怒られた例。

$ brew install https://raw.githubusercontent.com/Homebrew/homebrew-core/04791f84abb845f2b2e216da986f1b77e47f5701/Formula/volta.rb
Error: Installation of volta from a GitHub commit URL is unsupported! `brew extract volta` to a stable tap on GitHub instead.

1.1.0〜

1.1.0以上であれば多分get.volta.shからでもインストールできる。

$ curl https://get.volta.sh | bash -s -- --version 1.1.0

〜1.0.x

古いバージョンをインストールするにはこちらのやり方。

curl https://raw.githubusercontent.com/volta-cli/volta/8f2074f423c65405dfba9858d9bcf393c38ffb45/dev/unix/volta-install.sh | bash -s -- --version 1.0.8
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