0
0

More than 1 year has passed since last update.

nodejsのバージョン管理ツールVoltaを使ってみた

Last updated at Posted at 2021-10-25

Nodejsのバージョン管理ツール

 googleトレンドを見ると、最近voltaが来ている感じ、、。
スクリーンショット 2021-10-25 23.47.15.png

githubのスター数比較
- Node.js管理ツールの更新頻度とスター数を比較してみた

Voltaとは

  • Speed ⚡
  • Seamless, per-project version switching
  • Cross-platform support, including Windows and all Unix shells
  • Support for multiple package managers
  • Stable tool installation—no reinstalling on every Node upgrade!
  • Extensibility hooks for site-specific customization

公式引用

Rustに組み込まれてて早い。がポイントなんですかね。

使ってみる

# install Volta
curl https://get.volta.sh | bash

# install Node
volta install node

# start using Node
node

パスを通す

export VOLTA_HOME="$HOME/.volta"
export PATH="$VOLTA_HOME/bin:$PATH"

公式によると

volta pin node@12

このようにpinとするとバージョンが固定されるらしい。

もうちょっと使ってみて更新する予定。

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