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?

node 管理ツール: Volta, Proto

Last updated at Posted at 2025-03-27

Volta

概要

Node (npm, pnpm, yarn) のバージョン管理ができる、javaScript ツールマネージャー。

導入・削除方法

install

公式の方法で良さそう。

※ 予めローカルの node は削除しておくこと。

※ homebrew でのインストールは非推奨ぽそう。やはり公式が最大手。

uninstall

こちらも公式の方法で。

Proto

概要

Bun, Deno, Node (npm, pnpm, yarn), Rust, Go などのバージョン管理ができる、javascript ツールチェーン。

導入・削除方法

下記サイトが一番わかりやすそう。

install

公式で良さそう。
公式が自動で環境変数設定してくれるので、mac は ~/.zshrc を選択すること。設定後、source ~/.zshrc で更新する。

uninstall

rm -rf ~/.proto して削除。
mac なら、~/.zshrc から自動で設定された下記環境変数を削除する。

# proto
export PROTO_HOME="$HOME/.proto";
export PATH="$PROTO_HOME/shims:$PROTO_HOME/bin:$PATH";

使い方

下記サイトが一番わかりやすそう。

ツールのインストール

$ proto install node

ツールの実行方法

# 下記どちらも同一
$ proto run node -- --version
20.0.0

$ node --version
20.0.0

# ツールの場所
$ which node
~/.proto/shims/node

ディレクトリごとにバージョンの固定

./.prototools に記録される

proto pin node 18.0.0

ツールのアンインストール

$ proto uninstall node 18.0.0

# 該当ツールの全バージョン削除
$ proto uninstall node
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?