3
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 1 year has passed since last update.

Voltaで特定バージョンのNode.jsをUninstallしたい

Last updated at Posted at 2022-11-23

はじめに

Volta公式のUninstallコマンドに関するリファレンスには、packageのUninstallについては言及があるものの、Node自体については特にナシ
Nodeバージョンを増やしすぎて、volta list allした時にわんさか出てくるのも嫌なので、削除方法をメモ

2019年3月にはIssueが発行されているが、まだVoltaビルトインの機能としては対応されていないみたい
Support volta uninstall for node and yarn #327

方法

以下パスにあるバージョン番号のディレクトリを削除

  • Mac - ~/.volta/tools/image/node/
  • Win - %LOCALAPPDATA%\Volta\tools\image\node\

rm -rf ~/.volta/tools/image/node/x.x.x
Finderで消しに行ってもいいが、コマンドで実行すると楽

$ volta list node
⚡️ Node runtimes in your toolchain:

    v16.13.0
    v16.17.1 (default)
    v18.12.1

$ rm -rf ~/.volta/tools/image/node/16.13.0

$ volta list node                         
⚡️ Node runtimes in your toolchain:

    v16.17.1 (default)
    v18.12.1 

参考

3
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
3
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?